Explorar o código

Include stdlib.h for alloca() on OpenBSD

Anton Yabchinskiy %!s(int64=10) %!d(string=hai) anos
pai
achega
e136033e1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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