mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-20 01:20:32 +00:00
Delete VAX/OS2/DOS/AMIGA code from GNU Make
This commit is contained in:
parent
14e192e5ba
commit
10a766ebd0
463 changed files with 2517 additions and 201015 deletions
12
third_party/make/lib/dup2.c
vendored
12
third_party/make/lib/dup2.c
vendored
|
@ -17,13 +17,10 @@
|
|||
|
||||
/* written by Paul Eggert */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/errno.h"
|
||||
#include "third_party/make/src/config.h"
|
||||
|
||||
/* Specification. */
|
||||
#include <unistd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
/* clang-format off */
|
||||
|
||||
#if HAVE_DUP2
|
||||
|
||||
|
@ -33,7 +30,6 @@
|
|||
|
||||
/* Get declarations of the native Windows API functions. */
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <windows.h>
|
||||
|
||||
# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
|
||||
# include "msvc-inval.h"
|
||||
|
@ -43,7 +39,6 @@
|
|||
# if GNULIB_MSVC_NOTHROW
|
||||
# include "msvc-nothrow.h"
|
||||
# else
|
||||
# include <io.h>
|
||||
# endif
|
||||
|
||||
# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
|
||||
|
@ -107,7 +102,6 @@ ms_windows_dup2 (int fd, int desired_fd)
|
|||
|
||||
# elif defined __KLIBC__
|
||||
|
||||
# include <InnoTekLIBC/backend.h>
|
||||
|
||||
static int
|
||||
klibc_dup2dirfd (int fd, int desired_fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue