comparison src/xterm.c @ 29894:691fe247f018

Don't include sys/types.h unconditionally. Don't protect its inclusion with !USG (following xmenu.c).
author Dave Love <fx@gnu.org>
date Fri, 23 Jun 2000 14:28:20 +0000
parents 4235764941b5
children bf5da5d2d690
comparison
equal deleted inserted replaced
29893:8dcca357af53 29894:691fe247f018
42 /* This may include sys/types.h, and that somehow loses 42 /* This may include sys/types.h, and that somehow loses
43 if this is not done before the other system files. */ 43 if this is not done before the other system files. */
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>
57 #endif /* ! defined (BSD_SYSTEM) */ 55 #endif /* ! defined (BSD_SYSTEM) */
58 56
92 90
93 #ifdef USE_X_TOOLKIT 91 #ifdef USE_X_TOOLKIT
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
101 #ifdef HAVE_UNISTD_H 98 #ifdef HAVE_UNISTD_H
102 #include <unistd.h> 99 #include <unistd.h>
11112 XGetIMValues (xim, XNQueryInputStyle, &dpyinfo->xim_styles, NULL); 11109 XGetIMValues (xim, XNQueryInputStyle, &dpyinfo->xim_styles, NULL);
11113 11110
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 }
11120 } 11118 }
11121 11119