Mercurial > hg > xemacs-beta
comparison src/s/freebsd.h @ 253:157b30c96d03 r20-5b25
Import from CVS: tag r20-5b25
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:20:27 +0200 |
parents | 78f53ef88e17 |
children | 57709be46d1b |
comparison
equal
deleted
inserted
replaced
252:afb15df44434 | 253:157b30c96d03 |
---|---|
31 #define LIBS_SYSTEM "-lutil -lxpg4" | 31 #define LIBS_SYSTEM "-lutil -lxpg4" |
32 #else | 32 #else |
33 #define LIBS_SYSTEM "-lutil" | 33 #define LIBS_SYSTEM "-lutil" |
34 #endif | 34 #endif |
35 | 35 |
36 #ifndef NOT_C_CODE | |
37 #ifdef BSD /* fixing BSD define */ | |
38 #undef BSD | |
39 #endif | |
40 #include <sys/param.h> | |
36 /* Kludge to work around setlocale(LC_ALL,...) not working after 01/1997 */ | 41 /* Kludge to work around setlocale(LC_ALL,...) not working after 01/1997 */ |
37 #if __FreeBSD_version >= 199701 | 42 #if __FreeBSD_version >= 199701 |
38 #ifdef HAVE_X_WINDOWS | 43 #ifdef HAVE_X_WINDOWS |
39 #ifndef NOT_C_CODE | |
40 #include <X11/Xlocale.h> | 44 #include <X11/Xlocale.h> |
41 #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec) | 45 #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec) |
46 #endif /* HAVE X */ | |
47 #endif /* FreeBSD >= 199701 */ | |
42 #endif /* C code */ | 48 #endif /* C code */ |
43 #endif | |
44 #endif | |
45 | 49 |
46 #define LIBS_TERMCAP "-ltermcap" | 50 #define LIBS_TERMCAP "-ltermcap" |
47 | 51 |
48 #ifndef NO_SHARED_LIBS | 52 #ifndef NO_SHARED_LIBS |
49 #if 0 /* mrb */ | 53 #if 0 /* mrb */ |
81 | 85 |
82 /* freebsd uses OXTABS instead of the expected TAB3. */ | 86 /* freebsd uses OXTABS instead of the expected TAB3. */ |
83 #define TABDLY OXTABS | 87 #define TABDLY OXTABS |
84 #define TAB3 OXTABS | 88 #define TAB3 OXTABS |
85 | 89 |
86 /* this silences a few compilation warnings */ | |
87 #undef BSD | |
88 #if __FreeBSD__ == 1 | |
89 #define BSD 199103 | |
90 #elif __FreeBSD__ == 2 | |
91 #if __FreeBSD_version < 199701 | |
92 # define BSD 199306 | |
93 #else | |
94 # define BSD 199506 | |
95 #endif | |
96 #elif __FreeBSD__ == 3 | |
97 #define BSD 199506 | |
98 #endif | |
99 | |
100 /* Needed to avoid hanging when child process writes an error message | 90 /* Needed to avoid hanging when child process writes an error message |
101 and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */ | 91 and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */ |
102 #define vfork fork | 92 #define vfork fork |