[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libHLA SemaphorePosix.hh SHMPosix.cc SHMS...
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/libHLA SemaphorePosix.hh SHMPosix.cc SHMS... |
Date: |
Mon, 05 Jul 2010 17:45:35 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 10/07/05 17:45:35
Modified files:
libHLA : SemaphorePosix.hh SHMPosix.cc SHMSysV.hh
SemaphorePosix.cc
Log message:
Blind fix try for Solaris compile error.
Added _POSIX_C_SOURCE definition.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/SemaphorePosix.hh?cvsroot=certi&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/SHMPosix.cc?cvsroot=certi&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/SHMSysV.hh?cvsroot=certi&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/SemaphorePosix.cc?cvsroot=certi&r1=1.1&r2=1.2
Patches:
Index: SemaphorePosix.hh
===================================================================
RCS file: /sources/certi/certi/libHLA/SemaphorePosix.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SemaphorePosix.hh 28 Mar 2010 11:42:34 -0000 1.1
+++ SemaphorePosix.hh 5 Jul 2010 17:45:35 -0000 1.2
@@ -1,21 +1,15 @@
#ifndef SEMAPHORE_POSIX_H
#define SEMAPHORE_POSIX_H
-// Posix Semaphores systems includes
-// Don't forget to add "-lrt" to compilation line
-#include <sys/types.h>
-#include <Semaphore.hh>
-#include <fcntl.h>
-
// Others Systems includes
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
+#include <string>
#include <iostream>
// Specifics includes
#include "Semaphore.hh"
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#endif
#include <semaphore.h>
namespace libhla {
Index: SHMPosix.cc
===================================================================
RCS file: /sources/certi/certi/libHLA/SHMPosix.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SHMPosix.cc 28 Mar 2010 11:42:34 -0000 1.1
+++ SHMPosix.cc 5 Jul 2010 17:45:35 -0000 1.2
@@ -1,4 +1,5 @@
// SHM useful systems includes
+#define _POSIX_C_SOURCE 200112L
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
Index: SHMSysV.hh
===================================================================
RCS file: /sources/certi/certi/libHLA/SHMSysV.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SHMSysV.hh 28 Mar 2010 11:42:34 -0000 1.1
+++ SHMSysV.hh 5 Jul 2010 17:45:35 -0000 1.2
@@ -2,6 +2,9 @@
#define SHM_SYSV_H
// SHMs useful systems includes
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#endif
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
Index: SemaphorePosix.cc
===================================================================
RCS file: /sources/certi/certi/libHLA/SemaphorePosix.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SemaphorePosix.cc 28 Mar 2010 11:42:34 -0000 1.1
+++ SemaphorePosix.cc 5 Jul 2010 17:45:35 -0000 1.2
@@ -1,3 +1,21 @@
+// Posix Semaphores systems includes
+// Don't forget to add "-lrt" to compilation line
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#endif
+#include <sys/types.h>
+#include <Semaphore.hh>
+#include <fcntl.h>
+
+// Others Systems includes
+#include <cstdio>
+#include <unistd.h>
+#include <cstdlib>
+#include <cstring>
+#include <iostream>
+
+// Specifics includes
+#include <semaphore.h>
#include "SemaphorePosix.hh"
namespace libhla {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libHLA SemaphorePosix.hh SHMPosix.cc SHMS...,
certi-cvs <=