projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c32b89
)
Include <stdio.h> if NDEBUG is not defined; needed on SunOS 4.
author
Jim Meyering
<jim@meyering.net>
Wed, 22 Jul 1998 16:57:15 +0000
(16:57 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 22 Jul 1998 16:57:15 +0000
(16:57 +0000)
From Paul Eggert.
lib/xstrtol.c
patch
|
blob
|
history
diff --git
a/lib/xstrtol.c
b/lib/xstrtol.c
index 0dc871eacb2398cbc15f59937e4b146cd20662be..cd85a3f93d78a57f9b26f692faf454d305712e4c 100644
(file)
--- a/
lib/xstrtol.c
+++ b/
lib/xstrtol.c
@@
-36,6
+36,12
@@
# endif
#endif
+/* Some pre-ANSI implementations (e.g. SunOS 4)
+ need stderr defined if assertion checking is enabled. */
+#ifndef NDEBUG
+# include <stdio.h>
+#endif
+
#include <assert.h>
#include <errno.h>