comparison src/s/linux.h @ 157:6b37e6ddd302 r20-3b5

Import from CVS: tag r20-3b5
author cvs
date Mon, 13 Aug 2007 09:40:41 +0200
parents 59463afc5666
children 3bb7ccffb0c0
comparison
equal deleted inserted replaced
156:60baf0b43294 157:6b37e6ddd302
165 #else 165 #else
166 /* alane@wozzle.linet.org says that -lipc is not a separate library, 166 /* alane@wozzle.linet.org says that -lipc is not a separate library,
167 since libc-4.4.1. So -lipc was deleted. */ 167 since libc-4.4.1. So -lipc was deleted. */
168 #define LIBS_SYSTEM 168 #define LIBS_SYSTEM
169 169
170 #if 0 /* these options should either be cross-platform or removed - mrb */
170 /* XFree86 is built with -DFUNCPROTO=11 -DNARROWPROTO so we better build 171 /* XFree86 is built with -DFUNCPROTO=11 -DNARROWPROTO so we better build
171 XEmacs with these switches too so that X functions get called correctly. 172 XEmacs with these switches too so that X functions get called correctly.
172 At least XawScrollbarSetThumb needs this. */ 173 At least XawScrollbarSetThumb needs this. */
173 #define C_SWITCH_SYSTEM -DFUNCPROTO=11 -DNARROWPROTO -D_BSD_SOURCE 174 #define C_SWITCH_SYSTEM -DFUNCPROTO=11 -DNARROWPROTO -D_BSD_SOURCE
174 #endif 175 #endif
176 #define C_SWITCH_SYSTEM -DNARROWPROTO -D_BSD_SOURCE
177 #endif
178
175 179
176 /* XEmacs change: configure doesn't find this because math.h aliases 180 /* XEmacs change: configure doesn't find this because math.h aliases
177 rint to __rint so that it's not found. */ 181 rint to __rint so that it's not found. */
178 #define HAVE_RINT 1 182 #define HAVE_RINT 1
179 183
180 #ifdef __ELF__ 184 #ifdef __ELF__
181 #define UNEXEC unexelf.o 185 #define UNEXEC "unexelf.o"
182 #define UNEXEC_USE_MAP_PRIVATE 186 #define UNEXEC_USE_MAP_PRIVATE
183 #endif 187 #endif
184 188
185 #ifdef LINUX_QMAGIC 189 #ifdef LINUX_QMAGIC
186 190
187 #define HAVE_TEXT_START 191 #define HAVE_TEXT_START
188 #define UNEXEC unexsunos4.o 192 #define UNEXEC "unexsunos4.o"
189 #define N_PAGSIZ(x) PAGE_SIZE 193 #define N_PAGSIZ(x) PAGE_SIZE
190 194
191 #else /* not LINUX_QMAGIC */ 195 #else /* not LINUX_QMAGIC */
192 196
193 #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0) 197 #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0)
280 284
281 /* glibc fuckage */ 285 /* glibc fuckage */
282 #if defined __GLIBC__ && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || __GLIBC__ > 2) 286 #if defined __GLIBC__ && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || __GLIBC__ > 2)
283 # define GETPGRP_NEEDS_ARG 287 # define GETPGRP_NEEDS_ARG
284 #endif 288 #endif
289
290 /*#ifdef __ELF__*/
291 #if 0 /* This is broken -sb */
292 /* mrb - Ordinary link is simple and effective */
293 #define ORDINARY_LINK
294 #undef START_FILES
295 #undef LIB_STANDARD
296 #undef LIB_GCC
297 #endif /* __ELF__ */