summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-10 14:27:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-10 14:27:30 (GMT)
commitdbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f (patch)
tree988b0053e0e936a73a44e832bcff73c24b554cfa /configure.in
parent3e3e1296f09b5320ce7aa735896a6b53e401e2a9 (diff)
downloadcpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.zip
cpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.tar.gz
cpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.tar.bz2
Patch #569139: Implementation of major, minor and makedev.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 4f4f03a..94a0d1f 100644
--- a/configure.in
+++ b/configure.in
@@ -621,6 +621,7 @@ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
sys/un.h sys/utsname.h sys/wait.h pty.h term.h wctype.h libutil.h \
sys/resource.h netpacket/packet.h)
AC_HEADER_DIRENT
+AC_HEADER_MAJOR
# checks for typedefs
was_it_defined=no
@@ -1716,6 +1717,24 @@ AC_CHECK_FUNCS(gettimeofday,
)
)
+AC_MSG_CHECKING(for major, minor, and makedev)
+AC_TRY_COMPILE([
+ #if defined(MAJOR_IN_MKDEV)
+ #include <sys/mkdev.h>
+ #elif defined(MAJOR_IN_SYSMACROS)
+ #include <sys/sysmacros.h>
+ #else
+ #include <sys/types.h>
+ #endif
+],[
+ makedev(major(0),minor(0));
+],[
+ AC_DEFINE(HAVE_DEVICE_MACROS, 1,
+ [Define to 1 if you have the device macros.])
+ AC_MSG_RESULT(yes)
+],[
+ AC_MSG_RESULT(no)
+])
# On OSF/1 V5.1, getaddrinfo is available, but a define
# for [no]getaddrinfo in netdb.h.