[rtems commit] config: Include <rtems/posix/timer.h> on demand

Sebastian Huber sebh at rtems.org
Wed Aug 31 11:09:50 UTC 2022


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Aug 31 13:14:47 2022 +0200

config: Include <rtems/posix/timer.h> on demand

Updates #4691.

---

 cpukit/include/rtems/confdefs/face.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/include/rtems/confdefs/face.h b/cpukit/include/rtems/confdefs/face.h
index 25f321108c..317d821623 100644
--- a/cpukit/include/rtems/confdefs/face.h
+++ b/cpukit/include/rtems/confdefs/face.h
@@ -51,9 +51,10 @@
 
 #ifdef CONFIGURE_INIT
 
-#include <rtems/posix/timer.h>
-
 #ifdef CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
+
+  #include <rtems/posix/timer.h>
+
   int _POSIX_Timer_Is_allowed(
     clockid_t clock_id
   )



More information about the vc mailing list