Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/replace/system/time.h

    r414 r745  
    4747#endif
    4848
     49#ifndef HAVE_STRUCT_TIMESPEC
     50struct timespec {
     51        time_t tv_sec;            /* Seconds.  */
     52        long tv_nsec;           /* Nanoseconds.  */
     53};
     54#endif
     55
    4956#ifndef HAVE_MKTIME
    5057/* define is in "replace.h" */
     
    6774#endif
    6875
     76#ifndef HAVE_CLOCK_GETTIME
     77/* CLOCK_REALTIME is required by POSIX */
     78#define CLOCK_REALTIME 0
     79typedef int clockid_t;
     80int rep_clock_gettime(clockid_t clk_id, struct timespec *tp);
    6981#endif
     82/* make sure we have a best effort CUSTOM_CLOCK_MONOTONIC we can rely on */
     83#if defined(CLOCK_MONOTONIC)
     84#define CUSTOM_CLOCK_MONOTONIC CLOCK_MONOTONIC
     85#elif defined(CLOCK_HIGHRES)
     86#define CUSTOM_CLOCK_MONOTONIC CLOCK_HIGHRES
     87#else
     88#define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME
     89#endif
     90
     91#endif
Note: See TracChangeset for help on using the changeset viewer.