[rtems commit] rtems: Account for the network semaphore.

Chris Johns chrisj at rtems.org
Sat Apr 26 23:26:10 UTC 2014


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sun Apr 27 09:32:20 2014 +1000

rtems: Account for the network semaphore.

---

 cpukit/sapi/include/confdefs.h |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index b2a58d4..c58915c 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1780,10 +1780,17 @@ const rtems_libio_helper rtems_fs_init_helper =
     #define CONFIGURE_MAXIMUM_SEMAPHORES                 0
   #endif
 
+  #ifdef RTEMS_NETWORKING
+    #define CONFIGURE_NETWORKING_SEMAPHORES 1
+  #else
+    #define CONFIGURE_NETWORKING_SEMAPHORES 0
+  #endif
+
   #define CONFIGURE_SEMAPHORES \
     (CONFIGURE_MAXIMUM_SEMAPHORES + CONFIGURE_LIBIO_SEMAPHORES + \
       CONFIGURE_TERMIOS_SEMAPHORES + CONFIGURE_LIBBLOCK_SEMAPHORES + \
-      CONFIGURE_SEMAPHORES_FOR_FILE_SYSTEMS)
+      CONFIGURE_SEMAPHORES_FOR_FILE_SYSTEMS + \
+      CONFIGURE_NETWORKING_SEMAPHORES)
 
   /*
    * If there are no user or support semaphores defined, then we can assume




More information about the vc mailing list