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

22 lines
401 B
Diff

--- deviate.c.orig
+++ 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>
--- procdbase.c.orig
+++ 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"