1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +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