[gimp] Resolve implicit declaration of function 'getpid'



commit 4118fb6a7679e5311f6d468ffdb51b11904a2bb2
Author: lillolollo <4179-lillolollo users noreply gitlab gnome org>
Date:   Wed Sep 11 19:55:16 2019 +0000

    Resolve implicit declaration of function 'getpid'

 libgimp/gimp-debug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimp-debug.c b/libgimp/gimp-debug.c
index dd0b688c9e..4caaccf6aa 100644
--- a/libgimp/gimp-debug.c
+++ b/libgimp/gimp-debug.c
@@ -50,7 +50,7 @@
 
 #  include <windows.h>
 #  include <tlhelp32.h>
-#  include <process.h>
+#  include <processthreadsapi.h>
 #  undef RGB
 #endif
 
@@ -137,7 +137,7 @@ _gimp_debug_stop (void)
 
   HANDLE        hThreadSnap = NULL;
   THREADENTRY32 te32        = { 0 };
-  pid_t         opid        = getpid ();
+  DWORD         opid        = GetCurrentProcessId();
 
   g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,
          "Debugging (restart externally): %ld",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]