Skip to content

Commit

Permalink
Only include ligben.h for OpenBSD builds
Browse files Browse the repository at this point in the history
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
ryanflannery committed Jan 16, 2012
1 parent 28e8d26 commit f45d320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions compat.h
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion playlist.h
Expand Up @@ -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>
Expand Down

0 comments on commit f45d320

Please sign in to comment.