Mercurial > hg > xemacs-beta
comparison src/s/freebsd.h @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 972bbb6d6ca2 |
children | 6240c7796c7a |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
19 /* These aren't needed, since we have getloadavg. */ | 19 /* These aren't needed, since we have getloadavg. */ |
20 #undef KERNEL_FILE | 20 #undef KERNEL_FILE |
21 #undef LDAV_SYMBOL | 21 #undef LDAV_SYMBOL |
22 | 22 |
23 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 23 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
24 | |
25 #define INTERRUPTIBLE_OPEN | |
26 | 24 |
27 #define LIBS_DEBUG | 25 #define LIBS_DEBUG |
28 /* FreeBSD 2.2 or later */ | 26 /* FreeBSD 2.2 or later */ |
29 #ifndef __FreeBSD_version | 27 #ifndef __FreeBSD_version |
30 #include <osreldate.h> | 28 #include <osreldate.h> |
48 #endif /* HAVE X */ | 46 #endif /* HAVE X */ |
49 #endif /* FreeBSD >= 199701 && < 226000 */ | 47 #endif /* FreeBSD >= 199701 && < 226000 */ |
50 #endif /* C code */ | 48 #endif /* C code */ |
51 | 49 |
52 #define LIBS_TERMCAP "-ltermcap" | 50 #define LIBS_TERMCAP "-ltermcap" |
53 | |
54 #ifdef __ELF__ /* since from 3.0-CURRENT(maybe 19980831 or later) */ | |
55 #ifndef NOT_C_CODE | |
56 #include <stddef.h> | |
57 #endif | |
58 #define LD_SWITCH_SYSTEM | |
59 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o | |
60 #define UNEXEC unexelf.o | |
61 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o | |
62 #define LINKER "$(CC) -nostdlib" | |
63 #undef LIB_GCC | |
64 #define LIB_GCC | |
65 | |
66 #else /* not __ELF__ */ | |
67 | 51 |
68 #ifndef NO_SHARED_LIBS | 52 #ifndef NO_SHARED_LIBS |
69 #if 0 /* mrb */ | 53 #if 0 /* mrb */ |
70 #define LIB_GCC "-lgcc" | 54 #define LIB_GCC "-lgcc" |
71 #define LD_SWITCH_SYSTEM "-dc -dp -e start" | 55 #define LD_SWITCH_SYSTEM "-dc -dp -e start" |
93 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) | 77 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) |
94 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) | 78 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) |
95 #endif /* __FreeBSD__ */ | 79 #endif /* __FreeBSD__ */ |
96 #endif /* NO_SHARED_LIBS */ | 80 #endif /* NO_SHARED_LIBS */ |
97 | 81 |
98 #endif /* not __ELF__ */ | |
99 | |
100 #define HAVE_GETLOADAVG | 82 #define HAVE_GETLOADAVG |
101 /* #define NO_TERMIO */ /* detected in configure */ | 83 /* #define NO_TERMIO */ /* detected in configure */ |
102 #define DECLARE_GETPWUID_WITH_UID_T | 84 #define DECLARE_GETPWUID_WITH_UID_T |
103 | 85 |
104 /* freebsd uses OXTABS instead of the expected TAB3. */ | 86 /* freebsd uses OXTABS instead of the expected TAB3. */ |