diff options
Diffstat (limited to 'openwrt/package/serdisplib/patches')
-rw-r--r-- | openwrt/package/serdisplib/patches/100-io.patch | 19 | ||||
-rw-r--r-- | openwrt/package/serdisplib/patches/101-test_shared.patch | 14 |
2 files changed, 33 insertions, 0 deletions
diff --git a/openwrt/package/serdisplib/patches/100-io.patch b/openwrt/package/serdisplib/patches/100-io.patch new file mode 100644 index 000000000..5b78e10f2 --- /dev/null +++ b/openwrt/package/serdisplib/patches/100-io.patch @@ -0,0 +1,19 @@ +diff -ru serdisplib-1.96.orig/src/serdisp_connect.c serdisplib-1.96/src/serdisp_connect.c +--- serdisplib-1.96.orig/src/serdisp_connect.c 2005-10-07 20:40:50.000000000 +0200 ++++ serdisplib-1.96/src/serdisp_connect.c 2005-12-12 18:48:58.000000000 +0200 +@@ -60,6 +60,7 @@ + /* directIO only with linux and i386 */ + #if defined(__linux__) && (defined(__i386__) || defined(__x86_64__)) + #define __sd_linux_use_directIO__ 1 ++ #include <sys/io.h> + #endif + + +@@ -67,7 +68,6 @@ + #if defined(__linux__) + #include <linux/ppdev.h> + #include <linux/parport.h> +- #include <sys/io.h> + #include <stdlib.h> + #define OUTB(_d, _p) outb( (_d), (_p) ) + #define INB(_p) inb( (_p) ) diff --git a/openwrt/package/serdisplib/patches/101-test_shared.patch b/openwrt/package/serdisplib/patches/101-test_shared.patch new file mode 100644 index 000000000..af0cd5d38 --- /dev/null +++ b/openwrt/package/serdisplib/patches/101-test_shared.patch @@ -0,0 +1,14 @@ +diff -ru serdisplib-1.96.orig/src/Makefile.in serdisplib-1.96/src/Makefile.in +--- serdisplib-1.96.orig/src/Makefile.in 2005-10-19 01:12:42.000000000 +0200 ++++ serdisplib-1.96/src/Makefile.in 2005-12-12 19:18:12.000000000 +0200 +@@ -73,8 +73,8 @@ + $(CC) -fPIC -shared -o $(LIB_DIR)/$(LIB_SHARED) $(LIB_OBJECTS) + cd $(LIB_DIR) && $(LN_S) -f $(LIB_SHARED) $(LIB_NAME).so + +-testserdisp: $(LIB_DIR)/$(LIB_STATIC) $(OBJECTS) +- $(CC) -o testserdisp $(OBJECTS) $(LIB_DIR)/$(LIB_STATIC) ++testserdisp: $(LIB_DIR)/$(LIB_SHARED) $(OBJECTS) ++ $(CC) -o testserdisp $(OBJECTS) $(LIB_DIR)/$(LIB_SHARED) + + clean: + /bin/rm -f $(OBJECTS) $(LIB_OBJECTS) $(LIB_DIR)/*.a $(LIB_DIR)/*.so* |