Commit 8d096bd31779551d25da5edb0372f6c004bfe1d1

Con Kolivas 2011-09-06T09:37:52

Include libgen.h in opt.c to fix win32 compilation warnings.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/ccan/opt/opt.c b/ccan/opt/opt.c
index e3ccdbd..9bc34d9 100644
--- a/ccan/opt/opt.c
+++ b/ccan/opt/opt.c
@@ -7,6 +7,7 @@
 #ifndef WIN32
 	#include <err.h>
 #else
+#include <libgen.h>
 	#define errx(status, fmt, ...) { \
 			fprintf(stderr, fmt, __VA_ARGS__); \
 			fprintf(stderr, "\n"); \