mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-18 14:21:57 +01:00
musl removed basename from string.h, so the code was falling back to an implicit declaration of `int basename(int)` which mangled the arg pointer and returned an equally nonsensical one. This patch should become unnecessary when libgpiod is updated to 2.x because newer versions do not use basename. Fixes #15997
12 lines
369 B
Diff
12 lines
369 B
Diff
diff -urpN libgpiod-1.6.4.orig/lib/core.c libgpiod-1.6.4/lib/core.c
|
|
--- libgpiod-1.6.4.orig/lib/core.c 2024-04-16 16:33:55.415807785 -0700
|
|
+++ libgpiod-1.6.4/lib/core.c 2024-04-16 16:33:57.539287672 -0700
|
|
@@ -10,6 +10,7 @@
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <gpiod.h>
|
|
+#include <libgen.h>
|
|
#include <limits.h>
|
|
#include <linux/gpio.h>
|
|
#include <poll.h>
|