wmaker: Replaced local declaration of system function by proper header call
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 30 Jun 2013 14:02:38 +0000 (30 16:02 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 30 Jun 2013 14:10:09 +0000 (30 15:10 +0100)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/appicon.c
src/dock.c

index 41e52e7..dbe7ae5 100644 (file)
@@ -25,6 +25,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <stdlib.h>
+#include <libgen.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/stat.h>
@@ -556,7 +557,6 @@ static void killCallback(WMenu * menu, WMenuEntry * entry)
        WFakeGroupLeader *fPtr;
        char *buffer;
        char *shortname;
-       char *basename(const char *shortname);
 
        if (!WCHECK_STATE(WSTATE_NORMAL))
                return;
index 3c3c150..8bd72c2 100644 (file)
@@ -26,6 +26,7 @@
 #include <X11/Xutil.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <libgen.h>
 #include <string.h>
 #include <strings.h>
 #include <unistd.h>
@@ -208,7 +209,6 @@ static void killCallback(WMenu *menu, WMenuEntry *entry)
        WAppIcon *icon;
        WFakeGroupLeader *fPtr;
        char *buffer, *shortname, **argv;
-       char *basename(const char *shortname);
        int argc;
 
        if (!WCHECK_STATE(WSTATE_NORMAL))