Skip to content

Commit d771ceb

Browse files
committed
Revert "Fix curdir"
This reverts commit f76f570.
1 parent f76f570 commit d771ceb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

runtime/flang/curdir.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#ifndef _WIN32
2020
#include <sys/param.h>
2121
#include <sys/utsname.h>
22-
#else
23-
#include <Winsock2.h>
2422
#endif
2523
#include <stdlib.h>
2624
#include "stdioInterf.h"
@@ -119,8 +117,6 @@ void __fort_gethostname(host) char *host;
119117
}
120118
strcpy(host, p);
121119
#else
122-
char temp[128] = "";
123-
gethostname(host, sizeof(temp));
124-
strcpy(host, temp);
120+
strcpy(host, "localhost");
125121
#endif
126122
}

0 commit comments

Comments
 (0)