diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-09 13:18:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-10 08:56:06 +0100 |
commit | f244bfc5f8a938d61567b0d78eeac35cd757f0d9 (patch) | |
tree | 90c8fde2bfc2f4ca72b648c9b74fe8e20a793833 /cpukit/posix | |
parent | libcsupport: Delete superfluous _gettimeofday() (diff) | |
download | rtems-f244bfc5f8a938d61567b0d78eeac35cd757f0d9.tar.bz2 |
posix: Install <semaphore.h> only if not provided
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/posix/preinstall.am | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index 9d6fd48f59..8ffd4e63c4 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/Makefile.am @@ -25,7 +25,9 @@ if HAS_PTHREADS # include include_HEADERS = include/aio.h include_HEADERS += include/mqueue.h +if !HAVE_SEMAPHORE_H include_HEADERS += include/semaphore.h +endif # include/rtems/posix include_rtems_posix_HEADERS += include/rtems/posix/aio_misc.h diff --git a/cpukit/posix/preinstall.am b/cpukit/posix/preinstall.am index 6e3f2a28ec..64a8c6bb1d 100644 --- a/cpukit/posix/preinstall.am +++ b/cpukit/posix/preinstall.am @@ -52,10 +52,11 @@ $(PROJECT_INCLUDE)/mqueue.h: include/mqueue.h $(PROJECT_INCLUDE)/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mqueue.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/mqueue.h +if !HAVE_SEMAPHORE_H $(PROJECT_INCLUDE)/semaphore.h: include/semaphore.h $(PROJECT_INCLUDE)/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/semaphore.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/semaphore.h - +endif $(PROJECT_INCLUDE)/rtems/posix/aio_misc.h: include/rtems/posix/aio_misc.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/aio_misc.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/aio_misc.h |