aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-04-17 22:37:07 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-04-22 03:11:46 +0200
commit451428118de3f7ceebf25dd41caeda2d46b08d83 (patch)
tree3d8671790b5da852ad52f20888d3a93a4f518986
parent179ce4ca96b8b7a411e8db8d130b59ea8d68091d (diff)
downloadblogc-451428118de3f7ceebf25dd41caeda2d46b08d83.tar.gz
blogc-451428118de3f7ceebf25dd41caeda2d46b08d83.tar.bz2
blogc-451428118de3f7ceebf25dd41caeda2d46b08d83.zip
make: support operating systems without sysexits.h
-rw-r--r--src/blogc-make/exec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index 74af2ed..547e214 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -10,13 +10,18 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
+#ifdef HAVE_SYSEXITS_H
+#include <sysexits.h>
+#else
+#define EX_CONFIG 78
+#endif /* HAVE_SYSEXITS_H */
+
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
-#include <sysexits.h>
#include <errno.h>
#include <libgen.h>
#include "../common/compat.h"