comparison src/s/linux.h @ 151:59463afc5666 r20-3b2

Import from CVS: tag r20-3b2
author cvs
date Mon, 13 Aug 2007 09:37:19 +0200
parents 9f59509498e1
children 6b37e6ddd302
comparison
equal deleted inserted replaced
150:8ebb1c0f0f6f 151:59463afc5666
84 you will have to uncomment the following and make the proper 84 you will have to uncomment the following and make the proper
85 changes */ 85 changes */
86 86
87 /* #define LINUX_LDAV_FILE "/proc/loadavg" */ 87 /* #define LINUX_LDAV_FILE "/proc/loadavg" */
88 88
89 /* XEmacs change: The realpath() in linux's libc (4.6.27) sometimes
90 * fails with ELOOP erroneously. For example, create a file
91 * thirty-five or so directories deep and call realpath on it. You
92 * get ELOOP even if no symlinks at all are involved.
93 * -dkindred@cs.cmu.edu */
94 #undef HAVE_REALPATH
95
96 /* This is needed for dispnew.c:update_frame */ 89 /* This is needed for dispnew.c:update_frame */
97 90
98 #ifdef emacs 91 #ifdef emacs
99 #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ 92 #include <stdio.h> /* Get the definition of _IO_STDIO_H. */
100 #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) 93 #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
144 137
145 #define POSIX /* affects getpagesize.h and systty.h */ 138 #define POSIX /* affects getpagesize.h and systty.h */
146 139
147 /* Best not to include -lg, unless it is last on the command line */ 140 /* Best not to include -lg, unless it is last on the command line */
148 #define LIBS_DEBUG 141 #define LIBS_DEBUG
149 #ifndef HAVE_NCURSES /* XEmacs change */
150 #define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/ 142 #define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/
151 #endif
152 #ifndef __ELF__ 143 #ifndef __ELF__
153 #define LIB_STANDARD -lc /* avoid -lPW */ 144 #define LIB_STANDARD -lc /* avoid -lPW */
154 #else 145 #else
155 #undef LIB_GCC 146 #undef LIB_GCC
156 #define LIB_GCC 147 #define LIB_GCC
179 /* XFree86 is built with -DFUNCPROTO=11 -DNARROWPROTO so we better build 170 /* XFree86 is built with -DFUNCPROTO=11 -DNARROWPROTO so we better build
180 XEmacs with these switches too so that X functions get called correctly. 171 XEmacs with these switches too so that X functions get called correctly.
181 At least XawScrollbarSetThumb needs this. */ 172 At least XawScrollbarSetThumb needs this. */
182 #define C_SWITCH_SYSTEM -DFUNCPROTO=11 -DNARROWPROTO -D_BSD_SOURCE 173 #define C_SWITCH_SYSTEM -DFUNCPROTO=11 -DNARROWPROTO -D_BSD_SOURCE
183 #endif 174 #endif
184
185 /* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */
186 #define LIB_MOTIF -lXm -lXpm
187 175
188 /* XEmacs change: configure doesn't find this because math.h aliases 176 /* XEmacs change: configure doesn't find this because math.h aliases
189 rint to __rint so that it's not found. */ 177 rint to __rint so that it's not found. */
190 #define HAVE_RINT 1 178 #define HAVE_RINT 1
191 179