commit ab844bc4b1647f0bfdfc29069164b307abce5018
parent 1ce17c5d091fc014733ee9045f62e56383154515
Author: xplshn <anto@xplshn.com.ar>
Date: Tue, 24 Nov 2026 14:35:05 -0300
sh: no system test for tcsetsid and cdefs
Diffstat:
3 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/cmd/posix/sh/arith_yacc.c b/cmd/posix/sh/arith_yacc.c
@@ -38,8 +38,6 @@
#if __has_include(<sys/cdefs.h>)
#include <sys/cdefs.h>
#endif
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
-#include <sys/cdefs.h>
#endif
#include "arith.h"
#include "arith_yacc.h"
diff --git a/cmd/posix/sh/arith_yylex.c b/cmd/posix/sh/arith_yylex.c
@@ -38,8 +38,6 @@
#if __has_include(<sys/cdefs.h>)
#include <sys/cdefs.h>
#endif
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
-#include <sys/cdefs.h>
#endif
#include "arith_yacc.h"
#include "error.h"
diff --git a/cmd/posix/sh/shell.h b/cmd/posix/sh/shell.h
@@ -52,10 +52,8 @@
#include <unistd.h>
#ifndef tcsetsid
-#if defined(__linux__) || defined(__CYGWIN__)
#define tcsetsid(fd, pid) ioctl((fd), TIOCSCTTY, 0)
#endif
-#endif
#ifndef ALIGN
#define ALIGNBYTES (sizeof(void *) - 1)
@@ -157,8 +155,6 @@ typedef void *pointer;
#if __has_include(<sys/cdefs.h>)
#include <sys/cdefs.h>
#endif
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
-#include <sys/cdefs.h>
#endif
extern char nullstr[1]; /* null string */