aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--posix/getopt.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dd8c27516..b063f05569 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
1999-06-23 Ulrich Drepper <drepper@cygnus.com>
+ * posix/getopt.h: Include stdio.h.
+
* manual/arith.texi: Document restriction of ndigit parameter of
ecvt and friends.
* misc/efgcvt.c: Define NDIGIT_MAX.
diff --git a/posix/getopt.h b/posix/getopt.h
index b0147e9d2a..aec5d92a3d 100644
--- a/posix/getopt.h
+++ b/posix/getopt.h
@@ -1,5 +1,5 @@
/* Declarations for getopt.
- Copyright (C) 1989,90,91,92,93,94,96,97,98 Free Software Foundation, Inc.
+ Copyright (C) 1989,90,91,92,93,94,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,6 +23,11 @@
# define _GETOPT_H 1
#endif
+/* We include this here since on system susing GNU libc we need some
+ macros defined. <stdio.h> is probably the most portable header
+ file and it does what we need. */
+#include <stdio.h>
+
#ifdef __cplusplus
extern "C" {
#endif