diff options
| author | Dave Love | 2000-06-23 14:28:20 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-23 14:28:20 +0000 |
| commit | 68642df61fcb0d23744ae378aa97361093a01087 (patch) | |
| tree | 174ed68c53529f3e71c52d230655fa56ab8dbc3f /src | |
| parent | af5e64bc8ecbd20b7b2b39cec96c3afa9cdfa820 (diff) | |
| download | emacs-68642df61fcb0d23744ae378aa97361093a01087.tar.gz emacs-68642df61fcb0d23744ae378aa97361093a01087.zip | |
Don't include sys/types.h unconditionally. Don't protect its inclusion
with !USG (following xmenu.c).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 7c992eadfde..17aacf03ff7 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -44,13 +44,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 44 | #include "xterm.h" | 44 | #include "xterm.h" |
| 45 | #include <X11/cursorfont.h> | 45 | #include <X11/cursorfont.h> |
| 46 | 46 | ||
| 47 | #ifndef USG | ||
| 48 | /* Load sys/types.h if not already loaded. | 47 | /* Load sys/types.h if not already loaded. |
| 49 | In some systems loading it twice is suicidal. */ | 48 | In some systems loading it twice is suicidal. */ |
| 50 | #ifndef makedev | 49 | #ifndef makedev |
| 51 | #include <sys/types.h> | 50 | #include <sys/types.h> |
| 52 | #endif /* makedev */ | 51 | #endif /* makedev */ |
| 53 | #endif /* USG */ | ||
| 54 | 52 | ||
| 55 | #ifdef BSD_SYSTEM | 53 | #ifdef BSD_SYSTEM |
| 56 | #include <sys/ioctl.h> | 54 | #include <sys/ioctl.h> |
| @@ -94,7 +92,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 94 | #include <X11/Shell.h> | 92 | #include <X11/Shell.h> |
| 95 | #endif | 93 | #endif |
| 96 | 94 | ||
| 97 | #include <sys/types.h> | ||
| 98 | #ifdef HAVE_SYS_TIME_H | 95 | #ifdef HAVE_SYS_TIME_H |
| 99 | #include <sys/time.h> | 96 | #include <sys/time.h> |
| 100 | #endif | 97 | #endif |
| @@ -11114,6 +11111,7 @@ xim_open_dpy (dpyinfo, resource_name) | |||
| 11114 | #ifdef HAVE_X11R6 | 11111 | #ifdef HAVE_X11R6 |
| 11115 | destroy.callback = xim_destroy_callback; | 11112 | destroy.callback = xim_destroy_callback; |
| 11116 | destroy.client_data = (XPointer)dpyinfo; | 11113 | destroy.client_data = (XPointer)dpyinfo; |
| 11114 | /* This isn't prptotyped in OSF 5.0. */ | ||
| 11117 | XSetIMValues (xim, XNDestroyCallback, &destroy, NULL); | 11115 | XSetIMValues (xim, XNDestroyCallback, &destroy, NULL); |
| 11118 | #endif | 11116 | #endif |
| 11119 | } | 11117 | } |