From d0422d0401cab1eea9a2533964141028bcbd65e8 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 17 Nov 2006 11:54:45 +0000 Subject: - I had to apply this patch to get it to build with a uClibc-snapshot.. --- package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch | 12 ++++++++++++ package/sfdisk/sfdisk.mk | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch diff --git a/package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch b/package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch new file mode 100644 index 000000000..dd3595178 --- /dev/null +++ b/package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch @@ -0,0 +1,12 @@ +--- sfdisk/sfdisk.c.oorig 2006-10-09 16:24:06.000000000 +0200 ++++ sfdisk/sfdisk.c 2006-10-09 16:24:20.000000000 +0200 +@@ -47,6 +47,9 @@ + #include + #include + #ifdef __linux__ ++#define _LIBC ++#include ++#undef _LIBC + #include /* _syscall */ + #endif + #include "nls.h" diff --git a/package/sfdisk/sfdisk.mk b/package/sfdisk/sfdisk.mk index aa098dfdd..4cd76a6eb 100644 --- a/package/sfdisk/sfdisk.mk +++ b/package/sfdisk/sfdisk.mk @@ -10,10 +10,13 @@ SFDISK_DIR=$(BUILD_DIR)/sfdisk $(DL_DIR)/$(SFDISK_SOURCE): $(WGET) -P $(DL_DIR) $(SFDISK_SITE)/$(SFDISK_SOURCE) -$(SFDISK_DIR): $(DL_DIR)/$(SFDISK_SOURCE) +$(SFDISK_DIR)/.patched: $(DL_DIR)/$(SFDISK_SOURCE) bzcat $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(SFDISK_DIR) package/sfdisk/ sfdisk.\*.patch + touch $@ + -$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR) +$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR)/.patched $(MAKE) \ CROSS=$(TARGET_CROSS) DEBUG=false OPTIMIZATION="$(TARGET_CFLAGS)" \ -C $(SFDISK_DIR) -- cgit v1.2.3