annotate src/s/sol2.h @ 7948:ded078d63369

(GETTIMEOFDAY_ONE_ARGUMENT): Undef it.
author Richard M. Stallman <rms@gnu.org>
date Fri, 17 Jun 1994 23:51:52 +0000
parents 00d9f3adb17b
children cf5e53c5089e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2815
60f122cfe785 * process.c (wait_reading_process_input): If we're running
Jim Blandy <jimb@redhat.com>
parents: 2741
diff changeset
1 #include "usg5-4.h"
1179
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
7872
00d9f3adb17b (SOLARIS2): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7356
diff changeset
3 #define SOLARIS2
00d9f3adb17b (SOLARIS2): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7356
diff changeset
4
7948
ded078d63369 (GETTIMEOFDAY_ONE_ARGUMENT): Undef it.
Richard M. Stallman <rms@gnu.org>
parents: 7872
diff changeset
5 /* Solaris sometimes has two versions of gettimeofday
ded078d63369 (GETTIMEOFDAY_ONE_ARGUMENT): Undef it.
Richard M. Stallman <rms@gnu.org>
parents: 7872
diff changeset
6 and we don't know which one we will get. */
ded078d63369 (GETTIMEOFDAY_ONE_ARGUMENT): Undef it.
Richard M. Stallman <rms@gnu.org>
parents: 7872
diff changeset
7 #undef GETTIMEOFDAY_ONE_ARGUMENT
ded078d63369 (GETTIMEOFDAY_ONE_ARGUMENT): Undef it.
Richard M. Stallman <rms@gnu.org>
parents: 7872
diff changeset
8
4189
14c8cd7926a0 (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs.
Richard M. Stallman <rms@gnu.org>
parents: 3435
diff changeset
9 /* eggert@twinsun.com said these work in Solaris.
14c8cd7926a0 (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs.
Richard M. Stallman <rms@gnu.org>
parents: 3435
diff changeset
10 Perhaps they work in all kinds of SVR4, but this is more conservative. */
14c8cd7926a0 (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs.
Richard M. Stallman <rms@gnu.org>
parents: 3435
diff changeset
11 #undef BROKEN_TIOCGETC
14c8cd7926a0 (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs.
Richard M. Stallman <rms@gnu.org>
parents: 3435
diff changeset
12 #undef BROKEN_TIOCGWINSZ
14c8cd7926a0 (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs.
Richard M. Stallman <rms@gnu.org>
parents: 3435
diff changeset
13
3435
7930bf123cb7 (XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3413
diff changeset
14 /* This triggers a conditional in xfaces.c. */
7930bf123cb7 (XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3413
diff changeset
15 #define XOS_NEEDS_TIME_H
7930bf123cb7 (XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3413
diff changeset
16
1179
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 #define POSIX
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18
6103
4acb066b1b96 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 5596
diff changeset
19 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
4acb066b1b96 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 5596
diff changeset
20 says where to find X windows at run time. */
1638
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
21 #ifndef __GNUC__
5596
191c4af115dc (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX.
Richard M. Stallman <rms@gnu.org>
parents: 4189
diff changeset
22 #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX
1638
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
23 #else /* GCC */
7356
55588e31b258 (LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
Richard M. Stallman <rms@gnu.org>
parents: 6103
diff changeset
24 /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
55588e31b258 (LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
Richard M. Stallman <rms@gnu.org>
parents: 6103
diff changeset
25 has anything in it. It can be empty.
55588e31b258 (LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
Richard M. Stallman <rms@gnu.org>
parents: 6103
diff changeset
26 This works ok in src. Luckily lib-src does not use LD_SWITCH_SYSTEM. */
55588e31b258 (LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
Richard M. Stallman <rms@gnu.org>
parents: 6103
diff changeset
27 #define LD_SWITCH_SYSTEM `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
1638
e49c2e6349e4 (LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1584
diff changeset
28 #endif /* GCC */
1179
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 /* Compile in non-ansi fashion to work around bugs in system header files. */
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 #ifndef __GNUC__
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 #define C_SWITCH_SYSTEM -Xs
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 #else /* GCC */
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 #define C_SWITCH_SYSTEM -traditional
7961d1af11a7 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 #endif /* GCC */
2815
60f122cfe785 * process.c (wait_reading_process_input): If we're running
Jim Blandy <jimb@redhat.com>
parents: 2741
diff changeset
36 #define const
2741
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
37
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
38 /* Karl Berry writes:
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
39 If you have the misfortune to be running Solaris 2.1, you may have
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
40 noticed that the access system call does not check the readonlyness of
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
41 the filesystem the path refers to. This is a bug, according to
1d72336294c6 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents: 1638
diff changeset
42 access(2), but in the meantime, some of us need the right behavior. */
3162
358923f49f13 * s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents: 3161
diff changeset
43
358923f49f13 * s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents: 3161
diff changeset
44 /* Well, we released Emacs with this change, and fixed a typo, but
358923f49f13 * s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents: 3161
diff changeset
45 people keep saying that it doesn't work, and that the patch is easy
3413
d83c81c1c29d Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 3162
diff changeset
46 to install. Patch number is 100947-02. */
3162
358923f49f13 * s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents: 3161
diff changeset
47 #undef SOLARIS_BROKEN_ACCESS