summary refs log tree commit diff
path: root/src/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/system.c b/src/system.c
index d986efd..4c281ed 100644
--- a/src/system.c
+++ b/src/system.c
@@ -28,6 +28,7 @@
 
 #include <signal.h>
 #include <string.h>
+#include "error.h"
 #include "output.h"
 #include "system.h"
 
@@ -89,3 +90,10 @@ void *bsearch(const void *key, const void *base, size_t nmemb,
 	return 0;
 }
 #endif
+
+#ifndef HAVE_SYSCONF
+long sysconf(int name)
+{
+	sh_error("no sysconf for: %d", name);
+}
+#endif