Skip to content

Commit 14ccc57

Browse files
Update preprocessor directive for pthread atfork check
1 parent 77af0b5 commit 14ccc57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/func/protect_fork/protect_fork.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22
#include <snmalloc/snmalloc.h>
33

4-
#ifndef SNMALLOC_PTHREAD_ATFORK_WORKS
4+
#if defined(SNMALLOC_PTHREAD_ATFORK_WORKS) || defined(__MINGW32__)
55
int main()
66
{
77
std::cout << "Test did not run" << std::endl;
@@ -78,4 +78,4 @@ int main()
7878
return 0;
7979
}
8080

81-
#endif
81+
#endif

0 commit comments

Comments
 (0)