summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-21 13:16:04 +0000
committerJim Meyering <jim@meyering.net>2002-11-21 13:16:04 +0000
commit8281103ea411a4ff71ab75d92fb01a8fcf789a25 (patch)
treeb71a2da91c97756902eb2ac38c7b1a1703c8c7fe /lib
parent145d77b61a4e14ae16fa3634ad2e008db8cdca49 (diff)
downloadcoreutils-8281103ea411a4ff71ab75d92fb01a8fcf789a25.tar.xz
Use `"'s when including quotearg.h and xalloc.h, not the `<...>' notation.
Include <errno.h> and declare errno if necessary.
Diffstat (limited to 'lib')
-rw-r--r--lib/quotearg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index 5e7e01184..f9ebc6df3 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -25,10 +25,12 @@
# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
#endif
#include <sys/types.h>
-#include <quotearg.h>
-#include <xalloc.h>
#include <ctype.h>
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
#if ENABLE_NLS
# include <libintl.h>
@@ -97,6 +99,9 @@
# endif
#endif
+#include "quotearg.h"
+#include "xalloc.h"
+
#define INT_BITS (sizeof (int) * CHAR_BIT)
#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))