summaryrefslogtreecommitdiff
blob: 30a76c5fa8c3f6b66cc0fca077b06e5fd6a90a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
* Darwin and BSD need libgen.h for basename, on linux this header is
  also available

--- httpup.cpp
+++ httpup.cpp
@@ -15,6 +15,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <libgen.h>
 
 #include "fileutils.h"
 #include "httpup.h"