- I had to apply this patch to get it to build with a uClibc-snapshot..

This commit is contained in:
Bernhard Reutner-Fischer 2006-11-17 11:54:45 +00:00
parent 671ddcd2a3
commit d0422d0401
2 changed files with 17 additions and 2 deletions

View File

@ -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 <sys/stat.h>
#include <sys/utsname.h>
#ifdef __linux__
+#define _LIBC
+#include <sys/syscall.h>
+#undef _LIBC
#include <linux/unistd.h> /* _syscall */
#endif
#include "nls.h"

View File

@ -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)