void-packages/srcpkgs/nwipe/patches/0001-musl-build-fix.patch

28 lines
579 B
Diff
Raw Normal View History

2020-12-21 18:07:03 +00:00
From 8871bf692e3b5012fdb0ea069b81c6a8db8ef85f Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Mon, 21 Dec 2020 12:05:43 -0600
Subject: [PATCH] musl build fix
musl does not have bits/sigthread.h
---
src/nwipe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git src/nwipe.c src/nwipe.c
index 2c9c851..487177e 100644
--- src/nwipe.c
+++ src/nwipe.c
@@ -32,7 +32,9 @@
#include <signal.h>
#include <pthread.h>
#include <sys/types.h>
+#if defined(__GLIBC__)
#include <bits/sigthread.h>
+#endif
#include "nwipe.h"
#include "context.h"
--
2.29.2