Created
September 11, 2024 23:52
-
-
Save kev009/b52399f40903bdaf38e8cdc6bf5b4d55 to your computer and use it in GitHub Desktop.
do not use.. hackjob to build netbsd tools on glibc 2.40/gcc 14 to the point I could build a kernel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/date/date.c b/bin/date/date.c | |
index a622c429363..142fcd0ab19 100644 | |
--- a/bin/date/date.c | |
+++ b/bin/date/date.c | |
@@ -48,6 +48,9 @@ __RCSID("$NetBSD: date.c,v 1.66 2024/01/21 16:55:56 christos Exp $"); | |
#endif | |
#endif /* not lint */ | |
+#define __USE_XOPEN | |
+#define _XOPEN_SOURCE | |
+ | |
#include <sys/param.h> | |
#include <sys/time.h> | |
diff --git a/external/gpl2/gmake/dist/main.c b/external/gpl2/gmake/dist/main.c | |
index 483babfcc29..105c6513d79 100644 | |
--- a/external/gpl2/gmake/dist/main.c | |
+++ b/external/gpl2/gmake/dist/main.c | |
@@ -967,8 +967,8 @@ main (int argc, char **argv, char **envp) | |
#endif | |
#define FATAL_SIG(sig) \ | |
- if (bsd_signal (sig, fatal_error_signal) == SIG_IGN) \ | |
- bsd_signal (sig, SIG_IGN); \ | |
+ if (signal (sig, fatal_error_signal) == SIG_IGN) \ | |
+ signal (sig, SIG_IGN); \ | |
else \ | |
ADD_SIG (sig); | |
@@ -1007,10 +1007,10 @@ main (int argc, char **argv, char **envp) | |
#ifdef HAVE_WAIT_NOHANG | |
# if defined SIGCHLD | |
- (void) bsd_signal (SIGCHLD, SIG_DFL); | |
+// (void) bsd_signal (SIGCHLD, SIG_DFL); | |
# endif | |
# if defined SIGCLD && SIGCLD != SIGCHLD | |
- (void) bsd_signal (SIGCLD, SIG_DFL); | |
+// (void) bsd_signal (SIGCLD, SIG_DFL); | |
# endif | |
#endif | |
@@ -1545,10 +1545,10 @@ main (int argc, char **argv, char **envp) | |
{ | |
extern RETSIGTYPE child_handler PARAMS ((int sig)); | |
# if defined SIGCHLD | |
- bsd_signal (SIGCHLD, child_handler); | |
+ signal (SIGCHLD, child_handler); | |
# endif | |
# if defined SIGCLD && SIGCLD != SIGCHLD | |
- bsd_signal (SIGCLD, child_handler); | |
+ signal (SIGCLD, child_handler); | |
# endif | |
} | |
#endif | |
@@ -1556,7 +1556,7 @@ main (int argc, char **argv, char **envp) | |
/* Let the user send us SIGUSR1 to toggle the -d flag during the run. */ | |
#ifdef SIGUSR1 | |
- bsd_signal (SIGUSR1, debug_signal_handler); | |
+ signal (SIGUSR1, debug_signal_handler); | |
#endif | |
/* Define the initial list of suffixes for old-style rules. */ | |
diff --git a/sbin/gpt/biosboot.c b/sbin/gpt/biosboot.c | |
index bccf45d3415..8d01dfd4e53 100644 | |
--- a/sbin/gpt/biosboot.c | |
+++ b/sbin/gpt/biosboot.c | |
@@ -292,8 +292,8 @@ cmd_biosboot(gpt_t gpt, int argc, char *argv[]) | |
goto usage; | |
break; | |
case 'b': | |
- if (gpt_human_get(gpt, &start) == -1) | |
- goto usage; | |
+ //if (gpt_human_get(gpt, &start) == -1) | |
+ // goto usage; | |
break; | |
default: | |
goto usage; | |
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c | |
index a3c29a1a7ea..9962644e627 100644 | |
--- a/usr.bin/sed/process.c | |
+++ b/usr.bin/sed/process.c | |
@@ -47,6 +47,9 @@ __FBSDID("$FreeBSD: head/usr.bin/sed/process.c 192732 2009-05-25 06:45:33Z brian | |
static const char sccsid[] = "@(#)process.c 8.6 (Berkeley) 4/20/94"; | |
#endif | |
+#define _XOPEN_SORUCE | |
+#define __USE_XOPEN | |
+ | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment