[Openmp-commits] [PATCH] D137745: [openmp] [test] Fix building the affinity/format/fields_values.c testcase on Windows

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 11 03:55:59 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4bf5893d1ab6: [openmp] [test] Fix building the affinity/format/fields_values.c testcase on… (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137745/new/

https://reviews.llvm.org/D137745

Files:
  openmp/runtime/test/affinity/format/fields_values.c


Index: openmp/runtime/test/affinity/format/fields_values.c
===================================================================
--- openmp/runtime/test/affinity/format/fields_values.c
+++ openmp/runtime/test/affinity/format/fields_values.c
@@ -19,8 +19,11 @@
 
 #if defined(_WIN32)
 #include <windows.h>
+#include <process.h>
 #define getpid _getpid
+#ifndef __MINGW32__
 typedef int pid_t;
+#endif
 #define gettid GetCurrentThreadId
 #define my_gethostname(buf, sz) GetComputerNameA(buf, &(sz))
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137745.474719.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221111/d480bd03/attachment.bin>


More information about the Openmp-commits mailing list