diff options
| author | Andreas Schwab | 1999-08-30 15:05:17 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-08-30 15:05:17 +0000 |
| commit | 9ee8cf9e1abd773b8278a5596b18c268861c2029 (patch) | |
| tree | 54ecdd5561bc6d9cbe91921818dd7d08a320034c /lib-src | |
| parent | c03649190c8835e9dfd89eb5f8745ee7e757f007 (diff) | |
| download | emacs-9ee8cf9e1abd773b8278a5596b18c268861c2029.tar.gz emacs-9ee8cf9e1abd773b8278a5596b18c268861c2029.zip | |
Include <unistd.h> if available.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/test-distrib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index 01897b83a7f..79d899a280c 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -10,11 +10,14 @@ | |||
| 10 | 10 | ||
| 11 | #include <stdio.h> | 11 | #include <stdio.h> |
| 12 | 12 | ||
| 13 | #ifdef HAVE_UNISTD_H | ||
| 14 | #include <unistd.h> | ||
| 15 | #endif | ||
| 16 | |||
| 13 | #ifndef O_RDONLY | 17 | #ifndef O_RDONLY |
| 14 | #define O_RDONLY 0 | 18 | #define O_RDONLY 0 |
| 15 | #endif | 19 | #endif |
| 16 | 20 | ||
| 17 | |||
| 18 | /* Break string in two parts to avoid buggy C compilers that ignore characters | 21 | /* Break string in two parts to avoid buggy C compilers that ignore characters |
| 19 | after nulls in strings. */ | 22 | after nulls in strings. */ |
| 20 | 23 | ||