Commit 7241ab5e authored by Niels Möller's avatar Niels Möller
Browse files

Make inclusion of unistd.h conditional. It's

needed for ssize_t, at least on freebsd.

Rev: src/argp/ChangeLog:1.20
Rev: src/argp/argp-fmtstream.h:1.14
parent 363370e7
......@@ -6,8 +6,8 @@
(OPT_HANG): Recognize this option only if getpid and sleep are
available.
* argp-fmtstream.h: Deleted unistd.h inclusion; appearantly it's
not needed.
* argp-fmtstream.h: Make inclusion of unistd.h conditional. It's
needed for ssize_t, at least on freebsd.
2004-03-01 Niels Mller <niels@s3.kth.se>
......
......@@ -29,6 +29,10 @@
#include <stdio.h>
#include <string.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if _LIBC || (defined (HAVE_FLOCKFILE) && defined(HAVE_PUTC_UNLOCKED) \
&& defined (HAVE_FPUTS_UNLOCKED) && defined (HAVE_FWRITE_UNLOCKED) )
/* Use locking funxtions */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment