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

@ -16,6 +16,7 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/calls/calls.h"
#include "libc/calls/syscall-sysv.internal.h"
#include "libc/calls/termios.h"
#include "libc/dce.h"
@ -41,6 +42,8 @@ int tcgetpgrp(int fd) {
rc = sys_ioctl(fd, TIOCGPGRP_linux, &pgrp);
} else if (IsBsd()) {
rc = sys_ioctl(fd, TIOCGPGRP_bsd, &pgrp);
} else if (IsWindows()) {
rc = getpid();
} else {
rc = enosys();
}