[llvm-commits] [poolalloc] r152636 - /poolalloc/trunk/runtime/PreRT/qsort.c
John Criswell
criswell at uiuc.edu
Tue Mar 13 11:07:44 PDT 2012
Author: criswell
Date: Tue Mar 13 13:07:44 2012
New Revision: 152636
URL: http://llvm.org/viewvc/llvm-project?rev=152636&view=rev
Log:
Fixed compilation on FreeBSD.
Modified:
poolalloc/trunk/runtime/PreRT/qsort.c
Modified: poolalloc/trunk/runtime/PreRT/qsort.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/PreRT/qsort.c?rev=152636&r1=152635&r2=152636&view=diff
==============================================================================
--- poolalloc/trunk/runtime/PreRT/qsort.c (original)
+++ poolalloc/trunk/runtime/PreRT/qsort.c Tue Mar 13 13:07:44 2012
@@ -21,7 +21,9 @@
Engineering a sort function; Jon Bentley and M. Douglas McIlroy;
Software - Practice and Experience; Vol. 23 (11), 1249-1265, 1993. */
+#if defined(__linux__)
#include <alloca.h>
+#endif
#include <limits.h>
#include <stdlib.h>
#include <string.h>
More information about the llvm-commits
mailing list