Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only include ligben.h for OpenBSD builds

This causes a warning about basename(3) on Linux, where basename(3)
should come from string.h (rather than libgen.h) when _GNU_SOURCE is
defined.
  • Loading branch information...
commit f45d3206db433c370081c8b8afb61c74397880d0 1 parent 28e8d26
Ryan Flannery authored
Showing with 1 addition and 1 deletion.
  1. +1 −0  compat.h
  2. +0 −1  playlist.h
1  compat.h
View
@@ -40,6 +40,7 @@
#if defined(__OpenBSD__)
# include <stdio.h>
# include <util.h>
+# include <libgen.h>
#endif
/* FreeBSD has fparseln(3), but it must be included thusly */
1  playlist.h
View
@@ -25,7 +25,6 @@
#include <err.h>
#include <errno.h>
#include <glob.h>
-#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Please sign in to comment.
Something went wrong with that request. Please try again.