summaryrefslogtreecommitdiffstats
path: root/multiarch-dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'multiarch-dispatch.h')
-rw-r--r--multiarch-dispatch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index 75f6a50..215cff8 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -13,7 +13,10 @@
#endif
/* Dispatch arch dependent header */
-#define _MULTIARCH_MAKE_HEADER(arch,header) <multiarch-arch-linux/header>
+#if defined(__linux__)
+#define _MULTIARCH_OS linux
+#endif
+#define _MULTIARCH_MAKE_HEADER(arch,header) <multiarch-arch-_MULTIARCH_OS/header>
#if defined(__x86_64__)
#include _MULTIARCH_MAKE_HEADER(x86_64,_MULTIARCH_HEADER)
#elif defined(__i386__)
@@ -36,6 +39,7 @@
#include _MULTIARCH_MAKE_HEADER(alpha,_MULTIARCH_HEADER)
#endif
#undef _MULTIARCH_MAKE_HEADER
+#undef _MULTIARCH_OS
#undef _MULTIARCH_HEADER
/* Redefine built-ins */