[rtems commit] nfsclient: Move defines to cover all header files

Sebastian Huber sebh at rtems.org
Mon Dec 16 13:25:43 UTC 2013


Module:    rtems
Branch:    master
Commit:    fb664a21c25759935247eed0dd56d0ba108cca4d
Changeset: http://git.rtems.org/rtems/commit/?id=fb664a21c25759935247eed0dd56d0ba108cca4d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Dec 16 10:55:27 2013 +0100

nfsclient: Move defines to cover all header files

---

 cpukit/libfs/src/nfsclient/src/sock_mbuf.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/libfs/src/nfsclient/src/sock_mbuf.c b/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
index 3f07b75..d41836b 100644
--- a/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
+++ b/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
@@ -78,6 +78,9 @@
 #include "config.h"
 #endif
 
+#define _KERNEL
+#define __BSD_VISIBLE	1
+
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -86,8 +89,6 @@
 #include <rtems/libio.h>
 #include <rtems/error.h>
 
-#define _KERNEL
-#define __BSD_VISIBLE	1
 #include <rtems/rtems_bsdnet.h>
 
 #include <sys/errno.h>




More information about the vc mailing list