comparison src/s/freebsd.h @ 175:2d532a89d707 r20-3b14

Import from CVS: tag r20-3b14
author cvs
date Mon, 13 Aug 2007 09:50:14 +0200
parents 85ec50267440
children 6075d714658b
comparison
equal deleted inserted replaced
174:bb3568571b84 175:2d532a89d707
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 /* Kludge to work around setlocale(LC_ALL,...) not working before 01/1997 */
37 #if __FreeBSD_version < 199701
38 #include <X11/Xlocale.h>
39 #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec)
40 #endif
41
36 #define LIBS_TERMCAP "-ltermcap" 42 #define LIBS_TERMCAP "-ltermcap"
37 #define LIB_GCC "-lgcc"
38 43
39 #ifndef NO_SHARED_LIBS 44 #ifndef NO_SHARED_LIBS
40 #if 0 /* mrb */ 45 #if 0 /* mrb */
46 #define LIB_GCC "-lgcc"
41 #define LD_SWITCH_SYSTEM "-dc -dp -e start" 47 #define LD_SWITCH_SYSTEM "-dc -dp -e start"
42 #define START_FILES "pre-crt0.o /usr/lib/crt0.o" 48 #define START_FILES "pre-crt0.o /usr/lib/crt0.o"
43 #else /* mrb */ 49 #else /* mrb */
44 #define ORDINARY_LINK 50 #define ORDINARY_LINK
51 #undef LIB_GCC
45 #undef LD_SWITCH_SYSTEM 52 #undef LD_SWITCH_SYSTEM
46 #undef START_FILES 53 #undef START_FILES
47 #endif /* mrb */ 54 #endif /* mrb */
48 55
49 #define HAVE_TEXT_START /* No need to define `start_of_text'. */ 56 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
63 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) 70 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
64 #endif /* __FreeBSD__ */ 71 #endif /* __FreeBSD__ */
65 #endif /* NO_SHARED_LIBS */ 72 #endif /* NO_SHARED_LIBS */
66 73
67 #define HAVE_GETLOADAVG 74 #define HAVE_GETLOADAVG
68 #define NO_TERMIO 75 /* #define NO_TERMIO */ /* mrb */
69 #define DECLARE_GETPWUID_WITH_UID_T 76 #define DECLARE_GETPWUID_WITH_UID_T
70 77
71 /* freebsd uses OXTABS instead of the expected TAB3. */ 78 /* freebsd uses OXTABS instead of the expected TAB3. */
72 #define TABDLY OXTABS 79 #define TABDLY OXTABS
73 #define TAB3 OXTABS 80 #define TAB3 OXTABS