void-packages/srcpkgs/nmon/patches/musl-fixes.patch
2022-01-05 22:58:52 -03:00

30 lines
695 B
Diff

--- a/lmon16n.c 2019-04-19 14:59:07.091281022 -0500
+++ b/lmon16n.c 2019-04-19 15:01:58.550285273 -0500
@@ -61,7 +61,7 @@
#include <fcntl.h>
#include <math.h>
#include <time.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
@@ -70,6 +70,10 @@
#include <sys/socket.h>
#include <sys/wait.h>
+#ifndef __STRING
+#define __STRING(x) #x
+#endif
+
/* Windows moved here so they can be cleared when the screen mode changes */
WINDOW *padwelcome = NULL;
WINDOW *padtop = NULL;
@@ -583,7 +587,6 @@
int isroot = 0;
#include <mntent.h>
-#include <fstab.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <net/if.h>