diff options
| author | Eli Zaretskii | 2010-08-22 20:00:08 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-08-22 20:00:08 +0300 |
| commit | a583bbef0ea8fe8bbc12ba93fef83f079e04edaf (patch) | |
| tree | 6ccc4802bc4d1e0701cd66c2654e1e93a2c7fe7d /src | |
| parent | 22eec92494d86a569c92722e538c6667833df380 (diff) | |
| download | emacs-a583bbef0ea8fe8bbc12ba93fef83f079e04edaf.tar.gz emacs-a583bbef0ea8fe8bbc12ba93fef83f079e04edaf.zip | |
Fix the w32 build after 2010-08-22T15:14:37Z!dann@ics.uci.edu.
sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff for w32.
s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H, it's done
in nt/config.nt.
makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/makefile.w32-in | 1 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 1 | ||||
| -rw-r--r-- | src/sysselect.h | 5 |
4 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 86b94e10d90..4add0968b6e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2010-08-22 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-08-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff | ||
| 4 | for w32. | ||
| 5 | |||
| 6 | * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H, | ||
| 7 | it's done in nt/config.nt. | ||
| 8 | |||
| 9 | * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h. | ||
| 10 | |||
| 3 | * unexcoff.c (report_error, make_hdr, write_segment) | 11 | * unexcoff.c (report_error, make_hdr, write_segment) |
| 4 | (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec): | 12 | (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec): |
| 5 | Convert argument lists and prototypes to ANSI C. | 13 | Convert argument lists and prototypes to ANSI C. |
diff --git a/src/makefile.w32-in b/src/makefile.w32-in index fc86ae6cb0c..8d99d6cedfe 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in | |||
| @@ -1357,6 +1357,7 @@ $(BLD)/sysdep.$(O) : \ | |||
| 1357 | $(SRC)/frame.h \ | 1357 | $(SRC)/frame.h \ |
| 1358 | $(SRC)/keyboard.h \ | 1358 | $(SRC)/keyboard.h \ |
| 1359 | $(SRC)/process.h \ | 1359 | $(SRC)/process.h \ |
| 1360 | $(SRC)/sysselect.h \ | ||
| 1360 | $(SRC)/syssignal.h \ | 1361 | $(SRC)/syssignal.h \ |
| 1361 | $(SRC)/systime.h \ | 1362 | $(SRC)/systime.h \ |
| 1362 | $(SRC)/systty.h \ | 1363 | $(SRC)/systty.h \ |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index f61fae57eff..4ae5f32e873 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -106,7 +106,6 @@ struct sigaction { | |||
| 106 | #define HAVE_SOUND 1 | 106 | #define HAVE_SOUND 1 |
| 107 | #define LISP_FLOAT_TYPE 1 | 107 | #define LISP_FLOAT_TYPE 1 |
| 108 | 108 | ||
| 109 | #undef HAVE_SYS_SELECT_H | ||
| 110 | #define HAVE_SYS_TIMEB_H 1 | 109 | #define HAVE_SYS_TIMEB_H 1 |
| 111 | #define HAVE_SYS_TIME_H 1 | 110 | #define HAVE_SYS_TIME_H 1 |
| 112 | #define HAVE_UNISTD_H 1 | 111 | #define HAVE_UNISTD_H 1 |
diff --git a/src/sysselect.h b/src/sysselect.h index ddb3e91f2e3..0c90814390c 100644 --- a/src/sysselect.h +++ b/src/sysselect.h | |||
| @@ -27,6 +27,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | #endif | 27 | #endif |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| 30 | /* The w32 build defines select stuff in w32.h, which is included | ||
| 31 | where w32 needs it, but not where sysselect.h is included. The w32 | ||
| 32 | definitions in w32.h are incompatible with the below. */ | ||
| 33 | #ifndef WINDOWSNT | ||
| 30 | #ifdef FD_SET | 34 | #ifdef FD_SET |
| 31 | #ifdef FD_SETSIZE | 35 | #ifdef FD_SETSIZE |
| 32 | #define MAXDESC FD_SETSIZE | 36 | #define MAXDESC FD_SETSIZE |
| @@ -44,6 +48,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #define FD_ISSET(n, p) (*(p) & (1 << (n))) | 48 | #define FD_ISSET(n, p) (*(p) & (1 << (n))) |
| 45 | #define FD_ZERO(p) (*(p) = 0) | 49 | #define FD_ZERO(p) (*(p) = 0) |
| 46 | #endif /* no FD_SET */ | 50 | #endif /* no FD_SET */ |
| 51 | #endif /* not WINDOWSNT */ | ||
| 47 | 52 | ||
| 48 | #if !defined (HAVE_SELECT) | 53 | #if !defined (HAVE_SELECT) |
| 49 | #define select sys_select | 54 | #define select sys_select |