summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
diff options
context:
space:
mode:
authorBenjamin Jacobs <benj@spam.thsi.be>2016-06-06 11:18:25 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-06-06 12:05:43 -0700
commit1ad2a2bd52a6e8ee9b66259a211800a7c5c7447a (patch)
treef460d3c73e6569f77c666be3f2ffb4e1aa9861c1 /src/lib/ecore_audio
parentd41b47f47e6bace28bb700d2aa8737cddb4b465b (diff)
ecore_audio: uncondionally include libgen.h.
Basically everyone should have it. If not, maybe we should consider to test the value of _POSIX_C_SOURCE before testing platform specific defines, or adding a feature check. Fixes the following warning on DragonFlyBSD: lib/ecore_audio/ecore_audio_obj_out_pulse.c:282:60: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration] class_vars.context = pa_context_new(class_vars.api, basename(argv[0])); ^ lib/ecore_audio/ecore_audio_obj_out_pulse.c:282:60: warning: passing argument 2 of 'pa_context_new' makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/local/include/pulse/pulseaudio.h:29:0, from lib/ecore_audio/ecore_audio_private.h:17, from lib/ecore_audio/ecore_audio_obj_out_pulse.c:18: /usr/local/include/pulse/context.h:172:13: note: expected 'const char *' but argument is of type 'int' pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name); ^ Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_audio')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_out_pulse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
index 9f2961e661..05c42b4507 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
@@ -6,9 +6,7 @@
6#include <stdio.h> 6#include <stdio.h>
7#include <string.h> 7#include <string.h>
8 8
9#if defined (__MacOSX__) || (defined (__MACH__) && defined (__APPLE__)) || defined (__FreeBSD__) 9#include <libgen.h>
10# include <libgen.h>
11#endif
12 10
13#ifdef HAVE_FEATURES_H 11#ifdef HAVE_FEATURES_H
14#include <features.h> 12#include <features.h>