summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/tsort.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/tsort.c b/scripts/tsort.c
index e307268da..51aba6a31 100644
--- a/scripts/tsort.c
+++ b/scripts/tsort.c
@@ -42,8 +42,6 @@ static const char copyright[] =
static const char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95";
#endif /* not lint */
-#include <sys/cdefs.h>
-
#include <sys/types.h>
#include <ctype.h>
@@ -55,6 +53,9 @@ static const char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95";
#include <string.h>
#include <unistd.h>
+/* https://pubs.opengroup.org/onlinepubs/007904875/functions/bcopy.html */
+#define bcopy(b1,b2,len) (memmove((b2), (b1), (len)), (void) 0)
+
/*
* Topological sort. Input is a list of pairs of strings separated by
* white space (spaces, tabs, and/or newlines); strings are written to