Skip to content

Instantly share code, notes, and snippets.

@nandub
Created February 27, 2012 11:29
Show Gist options
  • Save nandub/1923156 to your computer and use it in GitHub Desktop.
Save nandub/1923156 to your computer and use it in GitHub Desktop.
crosstool-ng 1.16.0 - Fixes clang offsetof compatability.
diff --git a/Makefile.in b/Makefile.in
index 3772058..74a2d79 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -348,7 +348,7 @@ KCONFIG_FILES := conf mconf nconf kconfig.mk
install-lib-kconfig: $(DESTDIR)$(libdir) install-lib-main
@echo " INST 'kconfig/'"
@for f in $(KCONFIG_FILES); do \
- install -D "kconfig/$${f}" "$(DESTDIR)$(libdir)/kconfig/$${f}"; \
+ $(install) -D "kconfig/$${f}" "$(DESTDIR)$(libdir)/kconfig/$${f}"; \
done
install-doc: $(DESTDIR)$(docdir)
diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf
index c9e690e..760b01b 100644
--- a/kconfig/zconf.gperf
+++ b/kconfig/zconf.gperf
@@ -6,6 +6,9 @@
%enum
%pic
%struct-type
+%{
+#include <stddef.h>
+%}
struct kconf_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment