summaryrefslogtreecommitdiff
path: root/emulators/dynamips/files/patch-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/dynamips/files/patch-utils.c')
-rw-r--r--emulators/dynamips/files/patch-utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/dynamips/files/patch-utils.c b/emulators/dynamips/files/patch-utils.c
new file mode 100644
index 000000000000..970f89eb2e78
--- /dev/null
+++ b/emulators/dynamips/files/patch-utils.c
@@ -0,0 +1,11 @@
+--- utils.c.orig Wed Mar 8 22:53:21 2006
++++ utils.c Wed Mar 8 22:53:37 2006
+@@ -187,7 +187,7 @@
+ {
+ void *p;
+
+-#ifdef __linux__
++#if defined(__linux__) || HAS_POSIX_MEMALIGN
+ if (posix_memalign((void *)&p,boundary,size))
+ #else
+ #ifdef __CYGWIN__