1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/deskutils/xmdiary/scripts/nomalloc

17 lines
215 B
Plaintext
Raw Normal View History

#!/bin/sh
for f in `find $1 -type f -name \*.\[ch\] -print | xargs grep -l malloc.h`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -10,1 +10,1 @@
-#include <malloc.h>
+#include <stdlib.h>
END_OF_PATCH
done