void-packages/srcpkgs/libieee1284/patches/musl.patch

21 lines
488 B
Diff
Raw Normal View History

--- src/access_io.c.orig 2005-03-11 18:55:41.000000000 +0100
+++ src/access_io.c 2015-05-31 11:14:36.635234600 +0200
@@ -47,7 +47,7 @@
#include "parport.h"
#include "ppdev.h"
-#ifdef HAVE_LINUX
+#if defined(HAVE_LINUX) && defined(__GLIBC__)
#ifdef HAVE_SYS_IO_H
#include <sys/io.h>
@@ -62,7 +62,7 @@ struct iopbuf {
unsigned char port_value;
};
-#elif defined(HAVE_CYGWIN_9X)
+#elif defined(HAVE_LINUX) && !defined(__GLIBC__) || defined(HAVE_CYGWIN_9X)
#include "io.h"