diff options
| author | Paul Eggert | 2011-01-09 00:12:35 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-09 00:12:35 -0800 |
| commit | 4004364e6777a1ed2c3e2c0fdf9fed871b186ac3 (patch) | |
| tree | 44d96204ce5ebd144662234e6185d542838be9d1 /lib-src | |
| parent | 613f7bda1d003048ad79e7c4bba744e5057d609e (diff) | |
| download | emacs-4004364e6777a1ed2c3e2c0fdf9fed871b186ac3.tar.gz emacs-4004364e6777a1ed2c3e2c0fdf9fed871b186ac3.zip | |
Include <unistd.h> unilaterally.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 4 | ||||
| -rw-r--r-- | lib-src/etags.c | 5 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 2 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 2 | ||||
| -rw-r--r-- | lib-src/movemail.c | 2 | ||||
| -rw-r--r-- | lib-src/pop.c | 2 | ||||
| -rw-r--r-- | lib-src/test-distrib.c | 3 | ||||
| -rw-r--r-- | lib-src/update-game-score.c | 2 |
9 files changed, 9 insertions, 19 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index cdceff66db4..df9f176270b 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-01-09 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-01-09 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Include <unistd.h> unilaterally. | ||
| 4 | * emacsclient.c, etags.c, fakemail.c, make-docfile.c, movemail.c: | ||
| 5 | * pop.c, test-distrib.c, update-game-score.c: | ||
| 6 | Include <unistd.h> without worrying about HAVE_UNISTD_H, since | ||
| 7 | unistd.h is always present now, possibly supplied by gnulib. | ||
| 8 | |||
| 3 | Include <getopt.h> not "getopt.h". | 9 | Include <getopt.h> not "getopt.h". |
| 4 | * ebrowse.c, emacsclient.c: Include <getopt.h>, not "getopt.h". | 10 | * ebrowse.c, emacsclient.c: Include <getopt.h>, not "getopt.h". |
| 5 | Since getopt.h is no longer in this directory, there's no point | 11 | Since getopt.h is no longer in this directory, there's no point |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 7bf19d11473..6e52b4dfeab 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -75,9 +75,7 @@ char *w32_getenv (char *); | |||
| 75 | #include <ctype.h> | 75 | #include <ctype.h> |
| 76 | #include <stdio.h> | 76 | #include <stdio.h> |
| 77 | #include <getopt.h> | 77 | #include <getopt.h> |
| 78 | #ifdef HAVE_UNISTD_H | 78 | #include <unistd.h> |
| 79 | # include <unistd.h> | ||
| 80 | #endif | ||
| 81 | 79 | ||
| 82 | #include <pwd.h> | 80 | #include <pwd.h> |
| 83 | #include <sys/stat.h> | 81 | #include <sys/stat.h> |
diff --git a/lib-src/etags.c b/lib-src/etags.c index f06e714c041..2721415adc9 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -172,9 +172,8 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 172 | # endif | 172 | # endif |
| 173 | #endif /* !WINDOWSNT */ | 173 | #endif /* !WINDOWSNT */ |
| 174 | 174 | ||
| 175 | #ifdef HAVE_UNISTD_H | 175 | #include <unistd.h> |
| 176 | # include <unistd.h> | 176 | #ifndef HAVE_UNISTD_H |
| 177 | #else | ||
| 178 | # if defined (HAVE_GETCWD) && !defined (WINDOWSNT) | 177 | # if defined (HAVE_GETCWD) && !defined (WINDOWSNT) |
| 179 | extern char *getcwd (char *buf, size_t size); | 178 | extern char *getcwd (char *buf, size_t size); |
| 180 | # endif | 179 | # endif |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 16baeb266a8..b7ebe88cc5d 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -62,9 +62,7 @@ main () | |||
| 62 | #include <stdlib.h> | 62 | #include <stdlib.h> |
| 63 | 63 | ||
| 64 | /* This is to declare cuserid. */ | 64 | /* This is to declare cuserid. */ |
| 65 | #ifdef HAVE_UNISTD_H | ||
| 66 | #include <unistd.h> | 65 | #include <unistd.h> |
| 67 | #endif | ||
| 68 | 66 | ||
| 69 | /* Type definitions */ | 67 | /* Type definitions */ |
| 70 | 68 | ||
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index e2dc99214d2..43648c8abc7 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -78,9 +78,7 @@ void fatal (const char *s1, const char *s2) NO_RETURN; | |||
| 78 | #undef chdir | 78 | #undef chdir |
| 79 | #endif | 79 | #endif |
| 80 | 80 | ||
| 81 | #ifdef HAVE_UNISTD_H | ||
| 82 | #include <unistd.h> | 81 | #include <unistd.h> |
| 83 | #endif | ||
| 84 | 82 | ||
| 85 | /* Stdio stream for output to the DOC file. */ | 83 | /* Stdio stream for output to the DOC file. */ |
| 86 | FILE *outfile; | 84 | FILE *outfile; |
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index f300942427e..8c6a0ddcb64 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -63,9 +63,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #include <time.h> | 63 | #include <time.h> |
| 64 | 64 | ||
| 65 | #include <getopt.h> | 65 | #include <getopt.h> |
| 66 | #ifdef HAVE_UNISTD_H | ||
| 67 | #include <unistd.h> | 66 | #include <unistd.h> |
| 68 | #endif | ||
| 69 | #ifdef HAVE_FCNTL_H | 67 | #ifdef HAVE_FCNTL_H |
| 70 | #include <fcntl.h> | 68 | #include <fcntl.h> |
| 71 | #endif | 69 | #endif |
diff --git a/lib-src/pop.c b/lib-src/pop.c index 9eabbd2041e..78793f1e9c7 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -68,9 +68,7 @@ extern struct servent *hes_getservbyname (/* char *, char * */); | |||
| 68 | #include <string.h> | 68 | #include <string.h> |
| 69 | #define index strchr | 69 | #define index strchr |
| 70 | #endif | 70 | #endif |
| 71 | #ifdef HAVE_UNISTD_H | ||
| 72 | #include <unistd.h> | 71 | #include <unistd.h> |
| 73 | #endif | ||
| 74 | 72 | ||
| 75 | #ifdef KERBEROS | 73 | #ifdef KERBEROS |
| 76 | # ifdef HAVE_KRB5_H | 74 | # ifdef HAVE_KRB5_H |
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index aca46f121fa..bdb5b160491 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -22,10 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <fcntl.h> | 24 | #include <fcntl.h> |
| 25 | |||
| 26 | #ifdef HAVE_UNISTD_H | ||
| 27 | #include <unistd.h> | 25 | #include <unistd.h> |
| 28 | #endif | ||
| 29 | 26 | ||
| 30 | /* Break string in two parts to avoid buggy C compilers that ignore characters | 27 | /* Break string in two parts to avoid buggy C compilers that ignore characters |
| 31 | after nulls in strings. */ | 28 | after nulls in strings. */ |
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c index b8e1147d1c1..ee4b9a3ba99 100644 --- a/lib-src/update-game-score.c +++ b/lib-src/update-game-score.c | |||
| @@ -34,9 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | 34 | ||
| 35 | #include <config.h> | 35 | #include <config.h> |
| 36 | 36 | ||
| 37 | #ifdef HAVE_UNISTD_H | ||
| 38 | #include <unistd.h> | 37 | #include <unistd.h> |
| 39 | #endif | ||
| 40 | #include <errno.h> | 38 | #include <errno.h> |
| 41 | #ifdef HAVE_STRING_H | 39 | #ifdef HAVE_STRING_H |
| 42 | #include <string.h> | 40 | #include <string.h> |