1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:37:35 +00:00

Ports/mandoc: Remove obsolete patches

Since the creation of the port, we gained support for nanosleep(),
WSTOPSIG(), and the getopt family of functions is now available in
unistd.h.
This commit is contained in:
Daniel Bertalan 2021-12-23 11:13:14 +01:00 committed by Ali Mohammad Pur
parent 29960faf20
commit 7893ae4233
6 changed files with 0 additions and 98 deletions

View file

@ -8,14 +8,6 @@
#if HAVE_SANDBOX_INIT
#include <sandbox.h>
#endif
@@ -42,6 +41,7 @@
#include <termios.h>
#include <time.h>
#include <unistd.h>
+#include <getopt.h>
#include "mandoc_aux.h"
#include "mandoc.h"
@@ -54,6 +54,7 @@
#include "main.h"
#include "manconf.h"
@ -24,20 +16,3 @@
enum outmode {
OUTMODE_DEF = 0,
@@ -660,6 +661,7 @@
if (!WIFSTOPPED(status))
break;
+#define WSTOPSIG(x) 0
signum = WSTOPSIG(status);
}
tag_unlink();
@@ -1239,7 +1241,7 @@
/* Do not start the pager before controlling the terminal. */
while (tcgetpgrp(STDOUT_FILENO) != getpid())
- nanosleep(&timeout, NULL);
+ sleep(1);
execvp(argv[0], argv);
err((int)MANDOCLEVEL_SYSERR, "exec %s", argv[0]);