Skip to content

Commit 0cee894

Browse files
committed
[flang][NFC] Add missing include for FreeBSD
Suggested by dankm here: #88517
1 parent f309c88 commit 0cee894

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/runtime/extensions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ inline void CtimeBuffer(char *buffer, size_t bufsize, const time_t cur_time,
4343
}
4444
#endif
4545

46-
#if _REENTRANT || _POSIX_C_SOURCE >= 199506L
47-
// System is posix-compliant and has getlogin_r
48-
#include <unistd.h>
46+
#ifndef _WIN32
47+
// posix-compliant and has getlogin_r and F_OK
48+
#include <unistd.h>
4949
#endif
5050

5151
extern "C" {

0 commit comments

Comments
 (0)