summaryrefslogtreecommitdiff
path: root/plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins.c')
-rw-r--r--plugins.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins.c b/plugins.c
index 5c4ee5af..06db3aa5 100644
--- a/plugins.c
+++ b/plugins.c
@@ -21,7 +21,12 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+#include <alloca.h>
#include <string.h>
+#ifndef __linux__
+#define _POSIX_C_SOURCE
+#endif
+#include <limits.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -38,6 +43,10 @@
#include "junklib.h"
#include "vfs.h"
+#ifndef PATH_MAX
+#define PATH_MAX 1024 /* max # of characters in a path name */
+#endif
+
//#define DISABLE_VERSIONCHECK 1
static uintptr_t mutex;