diff options
| author | Jim Blandy | 1993-07-05 09:31:36 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-05 09:31:36 +0000 |
| commit | 657070acda0f1897d0f4768ec621b8831ca9840a (patch) | |
| tree | ccf48a24aab006f9b84b708ccb6f65af84554729 /src | |
| parent | b1e94638f6da95840698d05c3c2c400778df22b2 (diff) | |
| download | emacs-657070acda0f1897d0f4768ec621b8831ca9840a.tar.gz emacs-657070acda0f1897d0f4768ec621b8831ca9840a.zip | |
* xfaces.c [XOS_NEEDS_TIME_H]: #undef USG while #including
<X11/Xos.h>, so that file doesn't try to define struct timeval and
struct timezone.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index de7b66036de..e5097b5ef8b 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -34,22 +34,24 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 34 | #include "blockinput.h" | 34 | #include "blockinput.h" |
| 35 | #include "window.h" | 35 | #include "window.h" |
| 36 | 36 | ||
| 37 | /* Compensate for bug in Xos.h on some systems. */ | 37 | /* Compensate for bug in Xos.h on some systems, on which it requires |
| 38 | time.h. On some such systems, Xos.h tries to redefine struct | ||
| 39 | timeval and struct timezone if USG is #defined while it is | ||
| 40 | #included. */ | ||
| 38 | #ifdef XOS_NEEDS_TIME_H | 41 | #ifdef XOS_NEEDS_TIME_H |
| 42 | |||
| 39 | #include <time.h> | 43 | #include <time.h> |
| 44 | #undef USG | ||
| 45 | #include <X11/Xos.h> | ||
| 46 | #define USG | ||
| 40 | #define __TIMEVAL__ | 47 | #define __TIMEVAL__ |
| 41 | #endif | ||
| 42 | 48 | ||
| 43 | /* These don't seem to be used. */ | 49 | #else |
| 44 | #if 0 | ||
| 45 | /* Display Context for the icons */ | ||
| 46 | #include <X11/Intrinsic.h> | ||
| 47 | #include <X11/StringDefs.h> | ||
| 48 | #include <X11/Xmu/Drawing.h> | ||
| 49 | #endif | ||
| 50 | 50 | ||
| 51 | #include <X11/Xos.h> | 51 | #include <X11/Xos.h> |
| 52 | 52 | ||
| 53 | #endif | ||
| 54 | |||
| 53 | 55 | ||
| 54 | /* An explanation of the face data structures. */ | 56 | /* An explanation of the face data structures. */ |
| 55 | 57 | ||