summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2014-07-24 14:16:41 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-07-29 17:53:08 +0100
commitb12d5f0d002da40c522a95ec92429e30385dcbd6 (patch)
tree815b1e056ae0af8ff8940cc08f36984cd7647fc7
parentd05f72d4c3e012dc102cb66faf435e512575d5a4 (diff)
downloadexternal_mesa3d-b12d5f0d002da40c522a95ec92429e30385dcbd6.zip
external_mesa3d-b12d5f0d002da40c522a95ec92429e30385dcbd6.tar.gz
external_mesa3d-b12d5f0d002da40c522a95ec92429e30385dcbd6.tar.bz2
os_process.c: Add cygwin as an expected platform
mesa/mesa/src/gallium/auxiliary/os/os_process.c:40:2: warning: #warning unexpected platform in os_process.c [-Wcpp] #warning unexpected platform in os_process.c mesa/mesa/src/gallium/auxiliary/os/os_process.c:77:2: warning: #warning unexpected platform in os_process.c [-Wcpp] #warning unexpected platform in os_process.c Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/gallium/auxiliary/os/os_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c
index ef38e1d..3e060b9 100644
--- a/src/gallium/auxiliary/os/os_process.c
+++ b/src/gallium/auxiliary/os/os_process.c
@@ -32,7 +32,7 @@
#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
# include <windows.h>
-#elif defined(__GLIBC__)
+#elif defined(__GLIBC__) || defined(__CYGWIN__)
# include <errno.h>
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
# include <stdlib.h>
@@ -68,7 +68,7 @@ os_get_process_name(char *procname, size_t size)
name = lpProcessName;
-#elif defined(__GLIBC__)
+#elif defined(__GLIBC__) || defined(__CYGWIN__)
name = program_invocation_short_name;
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
/* *BSD and OS X */