aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-18 08:14:59 +0000
committerRichard M. Stallman1994-09-18 08:14:59 +0000
commitd05c42e46d7e0544debf12f0535ad1a1b56a5a05 (patch)
tree799e751c25d452c2224f75ce9888c0c9eed5571b /src
parent1c45ffdf8add1643fbf21f4750716b348a644727 (diff)
downloademacs-d05c42e46d7e0544debf12f0535ad1a1b56a5a05.tar.gz
emacs-d05c42e46d7e0544debf12f0535ad1a1b56a5a05.zip
(DECLARE_GETPWUID_WITH_UID_T): Defined.
[NO_SHARED_LIBS and __FreeBSD__]: (LD_SWITCH_SYSTEM, A_TEXT_OFFSET, A_TEXT_SEEK): Alternate definitions.
Diffstat (limited to 'src')
-rw-r--r--src/s/freebsd.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 964a9b272bd..76ab979e90a 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -1,7 +1,9 @@
1/* s/ file for freebsd system. */ 1/* s/ file for freebsd system. */
2 2
3/* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up. 3/* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up.
4 Earlier versions do not have shared libraries, so inhibit them. */ 4 Earlier versions do not have shared libraries, so inhibit them.
5 You can inhibit them on newer systems if you wish
6 by defining NO_SHARED_LIBS. */
5#ifndef __FreeBSD__ 7#ifndef __FreeBSD__
6#define NO_SHARED_LIBS 8#define NO_SHARED_LIBS
7#endif 9#endif
@@ -29,13 +31,6 @@
29 31
30#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 32#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
31 33
32#if 0 /* These appear to be unnecessary for 1.1, and they break
33 emacs when compiled under FreeBSD-1.0.
34 Shawn M. Carey <smcarey@mailbox.syr.edu> */
35#define A_TEXT_OFFSET(x) (sizeof (struct exec))
36#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
37#endif
38
39#define LIBS_DEBUG 34#define LIBS_DEBUG
40#define LIBS_SYSTEM -lutil 35#define LIBS_SYSTEM -lutil
41#define LIBS_TERMCAP -ltermcap 36#define LIBS_TERMCAP -ltermcap
@@ -50,8 +45,6 @@
50#undef BSD_PGRPS 45#undef BSD_PGRPS
51 46
52#ifndef NO_SHARED_LIBS 47#ifndef NO_SHARED_LIBS
53/* These definitions should work for either dynamic or static linking,
54 whichever is the default for `cc -nostdlib'. */
55#define HAVE_TEXT_START /* No need to define `start_of_text'. */ 48#define HAVE_TEXT_START /* No need to define `start_of_text'. */
56#define START_FILES pre-crt0.o /usr/lib/crt0.o 49#define START_FILES pre-crt0.o /usr/lib/crt0.o
57#define UNEXEC unexsunos4.o 50#define UNEXEC unexsunos4.o
@@ -62,12 +55,20 @@
62#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) 55#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
63#define N_TRELOFF(x) N_RELOFF(x) 56#define N_TRELOFF(x) N_RELOFF(x)
64#endif 57#endif
65#endif /* not NO_SHARED_LIBS */ 58#else /* NO_SHARED_LIBS */
59#ifdef __FreeBSD__ /* shared libs are available, but the user prefers
60 not to use them. */
61#define LD_SWITCH_SYSTEM -Bstatic
62#define A_TEXT_OFFSET(x) (sizeof (struct exec))
63#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
64#endif /* __FreeBSD__ */
65#endif /* NO_SHARED_LIBS */
66 66
67#define HAVE_WAIT_HEADER 67#define HAVE_WAIT_HEADER
68#define HAVE_GETLOADAVG 68#define HAVE_GETLOADAVG
69#define HAVE_TERMIOS 69#define HAVE_TERMIOS
70#define NO_TERMIO 70#define NO_TERMIO
71#define DECLARE_GETPWUID_WITH_UID_T
71 72
72/* freebsd uses OXTABS instead of the expected TAB3. */ 73/* freebsd uses OXTABS instead of the expected TAB3. */
73#define TABDLY OXTABS 74#define TABDLY OXTABS