diff options
| author | Dan Nicolaescu | 2010-11-23 10:09:55 -0800 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-11-23 10:09:55 -0800 |
| commit | 2e8a479790905675fea870ac73f1deebd6889eea (patch) | |
| tree | 40f3a6b539828096c515636fe0a4ef254cada2ca | |
| parent | 6e13206c036278d386b70e742355876b0340d28a (diff) | |
| download | emacs-2e8a479790905675fea870ac73f1deebd6889eea.tar.gz emacs-2e8a479790905675fea870ac73f1deebd6889eea.zip | |
Include <sys/ioctl.h> unconditionally.
* configure.in <AC_CHECK_HEADERS>: Remove sys/ioctl.h.
* src/xterm.c:
* src/systty.h:
* src/sound.c: Include <sys/ioctl.h> unconditionally.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | configure | 13 | ||||
| -rw-r--r-- | configure.in | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/config.in | 3 | ||||
| -rw-r--r-- | src/sound.c | 2 | ||||
| -rw-r--r-- | src/systty.h | 2 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
8 files changed, 10 insertions, 24 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * configure.in <AC_CHECK_HEADERS>: Remove sys/ioctl.h. | ||
| 4 | |||
| 1 | 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * configure.in (INLINE): Do not depend on OPTIMIZE, unused. | 7 | * configure.in (INLINE): Do not depend on OPTIMIZE, unused. |
| @@ -14106,19 +14106,6 @@ $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h | |||
| 14106 | 14106 | ||
| 14107 | fi | 14107 | fi |
| 14108 | 14108 | ||
| 14109 | for ac_header in sys/ioctl.h | ||
| 14110 | do : | ||
| 14111 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | ||
| 14112 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : | ||
| 14113 | cat >>confdefs.h <<_ACEOF | ||
| 14114 | #define HAVE_SYS_IOCTL_H 1 | ||
| 14115 | _ACEOF | ||
| 14116 | |||
| 14117 | fi | ||
| 14118 | |||
| 14119 | done | ||
| 14120 | |||
| 14121 | |||
| 14122 | if test -f /usr/lpp/X11/bin/smt.exp; then | 14109 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 14123 | 14110 | ||
| 14124 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h | 14111 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h |
diff --git a/configure.in b/configure.in index 784d2fb4e5b..c24b60946e9 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3028,8 +3028,6 @@ dnl Fixme: Not used. Should this be HAVE_SOCKETS? | |||
| 3028 | [Define to 1 if you have inet sockets.]) | 3028 | [Define to 1 if you have inet sockets.]) |
| 3029 | fi | 3029 | fi |
| 3030 | 3030 | ||
| 3031 | AC_CHECK_HEADERS(sys/ioctl.h) | ||
| 3032 | |||
| 3033 | if test -f /usr/lpp/X11/bin/smt.exp; then | 3031 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 3034 | AC_DEFINE(HAVE_AIX_SMT_EXP, 1, | 3032 | AC_DEFINE(HAVE_AIX_SMT_EXP, 1, |
| 3035 | [Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists.]) | 3033 | [Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists.]) |
diff --git a/src/ChangeLog b/src/ChangeLog index d9aad77fc7c..75a141dabc6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * xterm.c: | ||
| 4 | * systty.h: | ||
| 5 | * sound.c: Include <sys/ioctl.h> unconditionally. | ||
| 6 | |||
| 1 | 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 8 | ||
| 3 | * alloc.c (mark_maybe_object): Return early if given a Lisp | 9 | * alloc.c (mark_maybe_object): Return early if given a Lisp |
diff --git a/src/config.in b/src/config.in index 7d6f052fd4d..b9e9d7c720d 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -663,9 +663,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 663 | /* Define to 1 if you have the `sysinfo' function. */ | 663 | /* Define to 1 if you have the `sysinfo' function. */ |
| 664 | #undef HAVE_SYSINFO | 664 | #undef HAVE_SYSINFO |
| 665 | 665 | ||
| 666 | /* Define to 1 if you have the <sys/ioctl.h> header file. */ | ||
| 667 | #undef HAVE_SYS_IOCTL_H | ||
| 668 | |||
| 669 | /* Define to 1 if you have the <sys/mman.h> header file. */ | 666 | /* Define to 1 if you have the <sys/mman.h> header file. */ |
| 670 | #undef HAVE_SYS_MMAN_H | 667 | #undef HAVE_SYS_MMAN_H |
| 671 | 668 | ||
diff --git a/src/sound.c b/src/sound.c index 3869f3a57ff..6fd23c9ad64 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -56,9 +56,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 56 | /* BEGIN: Non Windows Includes */ | 56 | /* BEGIN: Non Windows Includes */ |
| 57 | #ifndef WINDOWSNT | 57 | #ifndef WINDOWSNT |
| 58 | 58 | ||
| 59 | #ifndef MSDOS | ||
| 60 | #include <sys/ioctl.h> | 59 | #include <sys/ioctl.h> |
| 61 | #endif | ||
| 62 | 60 | ||
| 63 | /* FreeBSD has machine/soundcard.h. Voxware sound driver docs mention | 61 | /* FreeBSD has machine/soundcard.h. Voxware sound driver docs mention |
| 64 | sys/soundcard.h. So, let's try whatever's there. */ | 62 | sys/soundcard.h. So, let's try whatever's there. */ |
diff --git a/src/systty.h b/src/systty.h index 9cecbab4f0e..59850e7c321 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -26,9 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #include <fcntl.h> | 26 | #include <fcntl.h> |
| 27 | #endif /* not DOS_NT */ | 27 | #endif /* not DOS_NT */ |
| 28 | 28 | ||
| 29 | #ifdef HAVE_SYS_IOCTL_H | ||
| 30 | #include <sys/ioctl.h> | 29 | #include <sys/ioctl.h> |
| 31 | #endif | ||
| 32 | 30 | ||
| 33 | #ifdef HPUX | 31 | #ifdef HPUX |
| 34 | #include <sys/bsdtty.h> | 32 | #include <sys/bsdtty.h> |
diff --git a/src/xterm.c b/src/xterm.c index ed3e5dcae45..a571d025571 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -47,9 +47,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | #include <sys/types.h> | 47 | #include <sys/types.h> |
| 48 | #endif /* makedev */ | 48 | #endif /* makedev */ |
| 49 | 49 | ||
| 50 | #ifdef HAVE_SYS_IOCTL_H | ||
| 51 | #include <sys/ioctl.h> | 50 | #include <sys/ioctl.h> |
| 52 | #endif /* ! defined (HAVE_SYS_IOCTL_H) */ | ||
| 53 | 51 | ||
| 54 | #include "systime.h" | 52 | #include "systime.h" |
| 55 | 53 | ||