summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-12-07 12:12:40 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-12-07 12:13:20 +0000
commit681c0d2bfbf22a51f90c977d0b3e91d30c23c11e (patch)
treecc6ec95d5d46f82442a23c5c9ab085772aefc817 /compat
parentcaf096394b3a155f904216dbf4d563c8ff7735b9 (diff)
Include compat.h after system headers, GitHub issue 2492.
Diffstat (limited to 'compat')
-rw-r--r--compat/closefrom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/closefrom.c b/compat/closefrom.c
index 28be3680..be008239 100644
--- a/compat/closefrom.c
+++ b/compat/closefrom.c
@@ -14,8 +14,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "compat.h"
-
#ifndef HAVE_CLOSEFROM
#include <sys/types.h>
@@ -50,6 +48,8 @@
# include <libproc.h>
#endif
+#include "compat.h"
+
#ifndef OPEN_MAX
# define OPEN_MAX 256
#endif