ibara / baseutils

Portable OpenBSD userland utilities
29 stars 4 forks source link

Uneeded reference to sys/cdefs.h causes musl build to fail #5

Open g4jc opened 3 years ago

g4jc commented 3 years ago

As title, I was able to build this by removing the uneeded sys/cdefs.h reference. This header is not included in Gentoo musl.

diff --git a/libopenbsd/vis.h b/libopenbsd/vis.h
index abec9c6..c9c89b2 100644
--- a/libopenbsd/vis.h
+++ b/libopenbsd/vis.h
@@ -73,7 +73,7 @@
  */
 #define        UNVIS_END       1       /* no more characters */

-#include <sys/cdefs.h>

 char   *vis(char *, int, int, int);
 int    strvis(char *, const char *, int);