Changeset 836:da97a5aa7976 in freeDiameter for include
- Timestamp:
- Oct 10, 2012, 8:34:30 PM (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- include/freeDiameter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/CMakeLists.txt
r815 r836 72 72 73 73 # clock_gettime 74 CHECK_FUNCTION_EXISTS (clock_gettime HAVE_CLOCK_GETTIME) 75 IF (HAVE_CLOCK_GETTIME) 74 SET(HAVE_CLOCK_GETTIME "") 75 CHECK_FUNCTION_EXISTS (clock_gettime HAVE_NATIVE_CLOCK_GETTIME) 76 IF (HAVE_NATIVE_CLOCK_GETTIME) 76 77 SET(CLOCK_GETTIME_LIBS "") 77 ELSE (HAVE_CLOCK_GETTIME) 78 SET(HAVE_CLOCK_GETTIME 1) 79 ELSE (HAVE_NATIVE_CLOCK_GETTIME) 78 80 CHECK_LIBRARY_EXISTS (rt clock_gettime "" HAVE_LIBRT) 79 81 IF (HAVE_LIBRT) 80 82 SET(CLOCK_GETTIME_LIBS "-lrt") 83 SET(HAVE_CLOCK_GETTIME 1) 81 84 ELSE (HAVE_LIBRT) 82 85 CHECK_LIBRARY_EXISTS (posix4 clock_gettime "" HAVE_LIBPOSIX4) 83 86 IF (HAVE_LIBPOSIX4) 84 87 SET(CLOCK_GETTIME_LIBS "-lposix4") 88 SET(HAVE_CLOCK_GETTIME 1) 85 89 ENDIF (HAVE_LIBPOSIX4) 86 90 ENDIF (HAVE_LIBRT) 87 ENDIF (HAVE_ CLOCK_GETTIME)91 ENDIF (HAVE_NATIVE_CLOCK_GETTIME) 88 92 SET(CLOCK_GETTIME_LIBS ${CLOCK_GETTIME_LIBS} PARENT_SCOPE) 89 93 -
include/freeDiameter/freeDiameter-host.h.in
r815 r836 42 42 #cmakedefine HAVE_SIGNALENT_H 43 43 #cmakedefine HAVE_AI_ADDRCONFIG 44 #cmakedefine HAVE_CLOCK_GETTIME 44 45 45 46 #cmakedefine HOST_BIG_ENDIAN @HOST_BIG_ENDIAN@ -
include/freeDiameter/libfdproto.h
r810 r836 604 604 605 605 /*============================================================*/ 606 /* PORTABILITY */ 607 /*============================================================*/ 608 #ifndef HAVE_CLOCK_GETTIME 609 #define CLOCK_REALTIME 0 610 #include <sys/time.h> 611 int clock_gettime(int clk_id, struct timespec* ts); 612 #endif /* HAVE_CLOCK_GETTIME */ 613 614 615 616 /*============================================================*/ 606 617 /* BINARY STRINGS */ 607 618 /*============================================================*/
Note: See TracChangeset
for help on using the changeset viewer.