void-packages/srcpkgs/nmon/patches/musl-fixes.patch
2019-11-20 08:33:50 +01:00

30 lines
691 B
Diff

--- lmon16m.c 2019-04-19 14:59:07.091281022 -0500
+++ lmon16m.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>