Skip to content

Commit

Permalink
include libgen.h for basename
Browse files Browse the repository at this point in the history
basename prototype has been removed from string.h from latest musl [1]
compilers e.g. clang-18 flags the absense of prototype as error. therefore
include libgen.h for providing it.

[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Mar 26, 2024
1 parent 493e970 commit 32f99ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wtmpdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <time.h>
#include <ctype.h>
#include <errno.h>
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 32f99ce

Please sign in to comment.