aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 2d6c7c8..21a1f49 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
#include "../reqs/simple-xdg-bdirs/simple-xdg-bdirs.h"
#include <stdbool.h>
+#include <limits.h>
#include <unistd.h>
#include <sys/types.h>
@@ -26,6 +27,13 @@ int main(int argc, char **argv)
char **rdirs, **cur;
bool calpath_alloced = false;
+ if (INT_MAX < 2147483647) {
+ ERR(
+ "%s does not work appropriately on systems where `int` < 32 bits",
+ argv[0]
+ );
+ }
+
opt_parse(argc, argv);
cmd = opt_command();