mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
8334376110
organizer. PR: 4658 Submitted by: Mikhail Teterin <mi@aldan.ziplink.net>
17 lines
215 B
Bash
17 lines
215 B
Bash
#!/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
|
|
|