void-packages/srcpkgs/atop/patches/musl-fix-includes.patch

22 lines
399 B
Diff

--- a/deviate.c
+++ b/deviate.c
@@ -178,6 +178,7 @@
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <memory.h>
--- a/procdbase.c
+++ b/procdbase.c
@@ -67,7 +67,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "atop.h"
#include "photoproc.h"