summaryrefslogtreecommitdiff
path: root/src/import/export-raw.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-16 23:41:22 +0100
committerDaniel Mack <github@zonque.org>2015-11-16 23:41:22 +0100
commit8702319e119008954baa872d50d0e4098e6e83db (patch)
tree20abd20bce45653264e2a0dda3e1c7f0364f8cb7 /src/import/export-raw.c
parent5cd6491b71008334daa9965464e038dc3e39948a (diff)
parentcf0fbc49e67b55f8d346fc94de28c90113505297 (diff)
Merge pull request #1922 from phomes/sort-includes
Sort includes
Diffstat (limited to 'src/import/export-raw.c')
-rw-r--r--src/import/export-raw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/import/export-raw.c b/src/import/export-raw.c
index 103d45bf21..28c87594d6 100644
--- a/src/import/export-raw.c
+++ b/src/import/export-raw.c
@@ -20,6 +20,10 @@
***/
#include <sys/sendfile.h>
+
+/* When we include libgen.h because we need dirname() we immediately
+ * undefine basename() since libgen.h defines it as a macro to the POSIX
+ * version which is really broken. We prefer GNU basename(). */
#include <libgen.h>
#undef basename