Navigation


Changeset 836:da97a5aa7976 in freeDiameter for include/freeDiameter/libfdproto.h


Ignore:
Timestamp:
Oct 10, 2012, 8:34:30 PM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Add replacement for clock_gettime (for Mac OS) -- ticket #38

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r810 r836  
    604604
    605605/*============================================================*/
     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/*============================================================*/
    606617/*                         BINARY STRINGS                     */
    607618/*============================================================*/
Note: See TracChangeset for help on using the changeset viewer.