summaryrefslogtreecommitdiff
path: root/libguile/posix.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-20 18:31:24 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-20 18:31:24 +0200
commitb8d757732fae7c396d58327185f94e5d90846445 (patch)
treef7cc7ebe65b5722b74f519f0b4db8a0d95fbc528 /libguile/posix.c
parent3068bc738429286db225b618607848a5a40f82ce (diff)
downloadguile-b8d757732fae7c396d58327185f94e5d90846445.tar.gz
Rationalize include order in C files
Include config.h first, then system includes, then libguile includes, in alphabetical order, then the include for the file in question.
Diffstat (limited to 'libguile/posix.c')
-rw-r--r--libguile/posix.c51
1 files changed, 23 insertions, 28 deletions
diff --git a/libguile/posix.c b/libguile/posix.c
index 2c4845180..e416fb9cd 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -22,18 +22,20 @@
# include <config.h>
#endif
-#include <stdlib.h>
-#include <stdio.h>
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <uniconv.h>
+#include <unistd.h>
#ifdef HAVE_SCHED_H
# include <sched.h>
#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
@@ -45,52 +47,45 @@
# endif
#endif
-#include <unistd.h>
-
#ifdef LIBC_H_WITH_UNISTD_H
-#include <libc.h>
+# include <libc.h>
#endif
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
#ifdef HAVE_PWD_H
-#include <pwd.h>
+# include <pwd.h>
#endif
#ifdef HAVE_IO_H
-#include <io.h>
+# include <io.h>
+#endif
+
+#ifdef __MINGW32__
+# include "posix-w32.h"
#endif
-#include "gsubr.h"
-#include "pairs.h"
#include "async.h"
+#include "bitvectors.h"
#include "dynwind.h"
#include "extensions.h"
+#include "feature.h"
#include "finalizers.h"
#include "fports.h"
+#include "gettext.h"
+#include "gsubr.h"
#include "list.h"
-#include "bitvectors.h"
-#include "scmsigs.h"
-#include "feature.h"
#include "modules.h"
#include "numbers.h"
-#include "strings.h"
+#include "pairs.h"
+#include "scmsigs.h"
#include "srfi-13.h"
#include "srfi-14.h"
+#include "strings.h"
#include "symbols.h"
#include "syscalls.h"
-#include "vectors.h"
+#include "threads.h"
#include "values.h"
+#include "vectors.h"
#include "posix.h"
-#include "gettext.h"
-#include "threads.h"
-
-
-#ifdef __MINGW32__
-# include "posix-w32.h"
-#endif
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>