diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-09-14 13:16:56 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-14 13:17:36 +0300 |
commit | d69e68f1eb640515b6497ffb58841869c9b7922c (patch) | |
tree | 9fa939dc1e6fc62c2a6e2037ffc5e9c20fdc34c7 | |
parent | 069b148e89e36e31f826cd3b5c8983a12203ea51 (diff) |
glib: Also include process.h for getpid() on Windows
-rw-r--r-- | recipes/glib/0013-grand-Only-use-rand_s-when-targetting-Visual-Studio-.patch | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/recipes/glib/0013-grand-Only-use-rand_s-when-targetting-Visual-Studio-.patch b/recipes/glib/0013-grand-Only-use-rand_s-when-targetting-Visual-Studio-.patch index 11d2be0a..ff379061 100644 --- a/recipes/glib/0013-grand-Only-use-rand_s-when-targetting-Visual-Studio-.patch +++ b/recipes/glib/0013-grand-Only-use-rand_s-when-targetting-Visual-Studio-.patch @@ -1,4 +1,4 @@ -From 13799511a0e2044f8deb24aa95a4abd623c76c0f Mon Sep 17 00:00:00 2001 +From b3fbeb704191d96ab3305dcde281b5c4c442cd0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> Date: Sat, 13 Sep 2014 16:31:03 +0300 Subject: [PATCH] grand: Only use rand_s() when targetting Visual Studio >= @@ -10,14 +10,22 @@ Windows XP. https://bugzilla.gnome.org/show_bug.cgi?id=736458 --- - glib/grand.c | 12 ++++++++++++ - 1 file changed, 12 insertions(+) + glib/grand.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) diff --git a/glib/grand.c b/glib/grand.c -index 6262cd2..e5d681b 100644 +index 6262cd2..78a7708 100644 --- a/glib/grand.c +++ b/glib/grand.c -@@ -261,10 +261,22 @@ g_rand_new (void) +@@ -56,6 +56,7 @@ + + #ifdef G_OS_WIN32 + #include <stdlib.h> ++#include <process.h> /* For getpid() */ + #endif + + /** +@@ -261,10 +262,22 @@ g_rand_new (void) seed[3] = getppid (); } #else /* G_OS_WIN32 */ |