Parcourir la source

Include stdlib.h for alloca() on OpenBSD

Anton Yabchinskiy il y a 10 ans
Parent
commit
e136033e1c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      platform/x11/platform_config.h

+ 1 - 1
platform/x11/platform_config.h

@@ -29,7 +29,7 @@
 #ifdef __linux__
 #include <alloca.h>
 #endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
 #include <stdlib.h>
 #endif