1 Index: linux-2.6.25.4/scripts/genksyms/parse.c_shipped
2 ===================================================================
3 --- linux-2.6.25.4.orig/scripts/genksyms/parse.c_shipped
4 +++ linux-2.6.25.4/scripts/genksyms/parse.c_shipped
14 static int is_typedef;
15 Index: linux-2.6.25.4/scripts/genksyms/parse.y
16 ===================================================================
17 --- linux-2.6.25.4.orig/scripts/genksyms/parse.y
18 +++ linux-2.6.25.4/scripts/genksyms/parse.y
28 static int is_typedef;
29 Index: linux-2.6.25.4/scripts/kallsyms.c
30 ===================================================================
31 --- linux-2.6.25.4.orig/scripts/kallsyms.c
32 +++ linux-2.6.25.4/scripts/kallsyms.c
38 +/* Darwin has no memmem implementation, this one is ripped of the uClibc-0.9.28 source */
39 +void *memmem (const void *haystack, size_t haystack_len,
40 + const void *needle, size_t needle_len)
43 + const char *const last_possible
44 + = (const char *) haystack + haystack_len - needle_len;
46 + if (needle_len == 0)
47 + /* The first occurrence of the empty string is deemed to occur at
48 + the beginning of the string. */
49 + return (void *) haystack;
51 + /* Sanity check, otherwise the loop might search through the whole
53 + if (__builtin_expect (haystack_len < needle_len, 0))
56 + for (begin = (const char *) haystack; begin <= last_possible; ++begin)
57 + if (begin[0] == ((const char *) needle)[0] &&
58 + !memcmp ((const void *) &begin[1],
59 + (const void *) ((const char *) needle + 1),
61 + return (void *) begin;
67 #define KSYM_NAME_LEN 128
69 Index: linux-2.6.25.4/scripts/kconfig/Makefile
70 ===================================================================
71 --- linux-2.6.25.4.orig/scripts/kconfig/Makefile
72 +++ linux-2.6.25.4/scripts/kconfig/Makefile
73 @@ -93,6 +93,9 @@ check-lxdialog := $(srctree)/$(src)/lxd
74 # we really need to do so. (Do not call gcc as part of make mrproper)
75 HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
76 HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
77 +ifeq ($(shell uname -s),Darwin)
78 +HOST_LOADLIBES += -lncurses
81 HOST_EXTRACFLAGS += -DLOCALE
83 Index: linux-2.6.25.4/scripts/mod/mk_elfconfig.c
84 ===================================================================
85 --- linux-2.6.25.4.orig/scripts/mod/mk_elfconfig.c
86 +++ linux-2.6.25.4/scripts/mod/mk_elfconfig.c
94 +#include "../../../../../tools/sstrip/include/elf.h"
98 main(int argc, char **argv)
99 Index: linux-2.6.25.4/scripts/mod/modpost.h
100 ===================================================================
101 --- linux-2.6.25.4.orig/scripts/mod/modpost.h
102 +++ linux-2.6.25.4/scripts/mod/modpost.h
104 #include <sys/mman.h>
110 +#include "../../../../../tools/sstrip/include/elf.h"
113 #include "elfconfig.h"