[hackers] [ubase] Remember to include libgen.h for basename(3) || sin

From: <git_AT_suckless.org>
Date: Fri, 17 Oct 2014 17:08:35 +0200

commit 7e2fe55d680b963c8133ad504f61e7c127cb1dff
Author: sin <sin_AT_2f30.org>
Date: Fri Oct 17 16:07:49 2014 +0100

    Remember to include libgen.h for basename(3)

diff --git a/last.c b/last.c
index 5aeeb8f..7308a42 100644
--- a/last.c
+++ b/last.c
_AT_@ -1,5 +1,6 @@
 /* See LICENSE file for copyright and license details. */
 #include <errno.h>
+#include <libgen.h>
 #include <paths.h>
 #include <pwd.h>
 #include <stdio.h>
diff --git a/ps.c b/ps.c
index aedf7c4..c0e53f1 100644
--- a/ps.c
+++ b/ps.c
_AT_@ -3,6 +3,7 @@
 #include <sys/sysinfo.h>
 
 #include <errno.h>
+#include <libgen.h>
 #include <limits.h>
 #include <pwd.h>
 #include <stdio.h>
Received on Fri Oct 17 2014 - 17:08:35 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 17 2014 - 17:12:09 CEST