summaryrefslogtreecommitdiff
path: root/gl/unistd.in.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-08-15 09:58:09 +0200
committerSimon Josefsson <simon@josefsson.org>2009-08-15 09:58:09 +0200
commitb5157c8944c1d999a45e4177ebcc52b9feea088f (patch)
treeb03af6d0c4e8b931c57cccc737cc056ac11b5116 /gl/unistd.in.h
parent331dc98fc52955825a5bbc91b2cc4c24e97c8e8b (diff)
downloadgnutls-b5157c8944c1d999a45e4177ebcc52b9feea088f.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r--gl/unistd.in.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 578121e328..aada3643ef 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -29,6 +29,9 @@
#ifndef _GL_UNISTD_H
#define _GL_UNISTD_H
+/* NetBSD 5.0 mis-defines NULL. Also get size_t. */
+#include <stddef.h>
+
/* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>. */
#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET)
# include <stdio.h>
@@ -375,7 +378,6 @@ extern int gethostname(char *name, size_t len);
See <http://www.opengroup.org/susv3xsh/getlogin.html>.
*/
# if !@HAVE_DECL_GETLOGIN_R@
-# include <stddef.h>
extern int getlogin_r (char *name, size_t size);
# endif
#elif defined GNULIB_POSIXCHECK
@@ -536,7 +538,6 @@ extern int link (const char *path1, const char *path2);
See the POSIX:2001 specification
<http://www.opengroup.org/susv3xsh/readlink.html>. */
# if !@HAVE_READLINK@
-# include <stddef.h>
extern int readlink (const char *file, char *buf, size_t bufsize);
# endif
#elif defined GNULIB_POSIXCHECK