Remove getopt_long() from headers

We removed this API a long time ago and it was breaking the GNU make
open source build.
This commit is contained in:
Justine Tunney 2023-06-17 16:03:16 -07:00
parent b881c0ec9e
commit 12452976bd
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 12 additions and 23 deletions

View file

@ -20,6 +20,7 @@
#include "libc/calls/syscall-nt.internal.h"
#include "libc/calls/syscall-sysv.internal.h"
#include "libc/dce.h"
#include "libc/intrin/strace.internal.h"
/**
* Sets current directory based on file descriptor.
@ -30,9 +31,12 @@
* @asyncsignalsafe
*/
int fchdir(int dirfd) {
int rc;
if (!IsWindows()) {
return sys_fchdir(dirfd);
rc = sys_fchdir(dirfd);
} else {
return sys_fchdir_nt(dirfd);
rc = sys_fchdir_nt(dirfd);
}
STRACE("fchdir(%d) → %d% m", dirfd, rc);
return rc;
}