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
|
|
|