[rtems-libbsd commit] freebsd-to-rtems.py: Fix revert includes

Sebastian Huber sebh at rtems.org
Fri Feb 13 09:48:12 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    948b1a5b575949e79b34f7511db8fe6b0e0897c1
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=948b1a5b575949e79b34f7511db8fe6b0e0897c1

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jan 30 10:02:39 2015 +0100

freebsd-to-rtems.py: Fix revert includes

---

 freebsd-to-rtems.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 7e6f74b..764b755 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -188,6 +188,8 @@ def fixIncludes(data):
 # revert fixing the include paths inside a C or .h file
 def revertFixIncludes(data):
 	data = re.sub('#include <rtems/bsd/', '#include <', data)
+	data = re.sub('#include <util.h>', '#include <rtems/bsd/util.h>', data)
+	data = re.sub('#include <bsd.h>', '#include <rtems/bsd/bsd.h>', data)
 	return data
 
 # fix include paths inside a C or .h file




More information about the vc mailing list