Skip to contentSkip to conversation

ld10k1: define _GNU_SOURCE and use sighandler_t

PATCH Applied Ross Burton 2 participants 2 messages Jun 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ld10k1: define _GNU_SOURCE and use sighandler_t

__sighandler_t is a glibc internal type which doesn't exist in musl. By using AC_USE_SYSTEM_EXTENSIONS to get _GNU_SOURCE defined, both glibc and musl then expose sighandler_t.

---
 ld10k1/configure.ac      | 1 +
 ld10k1/src/ld10k1_fnc1.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
ld10k1/configure.ac +1 -0
index 276b24e..f48ca31 100644
@@ -4,6 +4,7 @@ AC_CONFIG_MACRO_DIR([m4])
 AM_MAINTAINER_MODE([enable])
 
 AC_CONFIG_HEADERS(config.h)
+AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_CC
 AC_PROG_LD
 AC_PROG_INSTALL
ld10k1/src/ld10k1_fnc1.c +1 -1
index 343584c..ddc43c6 100644
@@ -179,7 +179,7 @@ int main_loop(comm_param *param, int audigy, const char *card_id, int tram_size,
 {
 	fd_set active_fd_set/*, read_fd_set*/;
 	int i, j, res = 0;
-	__sighandler_t old_sig_pipe;
+	sighandler_t old_sig_pipe;
 
 	int main_sock = 0;
 	int data_sock = 0;
Signature · 1 line
2.11.0
Applied
#1 lore raw
Quoted 6 lines · Ross Burton

__sighandler_t is a glibc internal type which doesn't exist in musl. By using AC_USE_SYSTEM_EXTENSIONS to get _GNU_SOURCE defined, both glibc and musl then expose sighandler_t.

Applied, thanks.

Takashi