[rtems-libbsd commit] DHCPCD(8): Disable script support

Sebastian Huber sebh at rtems.org
Thu Jan 30 15:35:14 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec 17 14:06:35 2013 +0100

DHCPCD(8): Disable script support

---

 dhcpcd/script.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dhcpcd/script.h b/dhcpcd/script.h
index 4f9a085..dfd4a17 100644
--- a/dhcpcd/script.h
+++ b/dhcpcd/script.h
@@ -31,7 +31,18 @@
 #include "net.h"
 
 void if_printoptions(void);
+#ifndef __rtems__
 int send_interface(int, const struct interface *);
 int script_runreason(const struct interface *, const char *);
+#else /* __rtems__ */
+static inline int send_interface(int fd, const struct interface *iface)
+{
+	return 0;
+}
+static inline int script_runreason(const struct interface *ifp, const char *reason)
+{
+	return 0;
+}
+#endif /* __rtems__ */
 
 #endif




More information about the vc mailing list