aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-25 09:04:40 -0700
committerKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2024-04-07 22:21:43 -0700
commit197f51d29a01f46750fa6928409301aa8f1163d7 (patch)
treede122a1746ea0a1357d5b8f38e2b94c29fc76318
parent9bd5e2c7886fca72f139cd8402488a2235957d41 (diff)
downloadaer-inject-197f51d29a01f46750fa6928409301aa8f1163d7.tar.gz
aer-inject: Include libgen.h for explicit basename prototypeHEADmaster
The prototype for basename has been removed from string.h in the latest versions of musl [1]. This absence of prototype is flagged as an error by some compilers, such as clang-18. To resolve this, include libgen.h explicitly, which provides the prototype for basename. [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 Signed-off-by: Khem Raj <raj.khem@gmail.com> [sathya: Updated the commit log] Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
-rw-r--r--aer-inject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/aer-inject.c b/aer-inject.c
index 74e7f72..eed1211 100644
--- a/aer-inject.c
+++ b/aer-inject.c
@@ -11,6 +11,7 @@
*/
#include <stdio.h>
+#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>