~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/replace/system/time.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Parent
  • Date: 2008-04-26 15:21:27 UTC
  • Revision ID: james.westby@ubuntu.com-20080426152127-58mv5ojv5q362ise
Tags: upstream-1.0.34+git200804242206
ImportĀ upstreamĀ versionĀ 1.0.34+git200804242206

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _system_time_h
 
2
#define _system_time_h
 
3
/* 
 
4
   Unix SMB/CIFS implementation.
 
5
 
 
6
   time system include wrappers
 
7
 
 
8
   Copyright (C) Andrew Tridgell 2004
 
9
 
 
10
     ** NOTE! The following LGPL license applies to the replace
 
11
     ** library. This does NOT imply that all of Samba is released
 
12
     ** under the LGPL
 
13
   
 
14
   This library is free software; you can redistribute it and/or
 
15
   modify it under the terms of the GNU Lesser General Public
 
16
   License as published by the Free Software Foundation; either
 
17
   version 3 of the License, or (at your option) any later version.
 
18
 
 
19
   This library is distributed in the hope that it will be useful,
 
20
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
22
   Lesser General Public License for more details.
 
23
 
 
24
   You should have received a copy of the GNU Lesser General Public
 
25
   License along with this library; if not, see <http://www.gnu.org/licenses/>.
 
26
 
 
27
*/
 
28
 
 
29
#ifdef TIME_WITH_SYS_TIME
 
30
#include <sys/time.h>
 
31
#include <time.h>
 
32
#else
 
33
#ifdef HAVE_SYS_TIME_H
 
34
#include <sys/time.h>
 
35
#else
 
36
#include <time.h>
 
37
#endif
 
38
#endif
 
39
 
 
40
#ifdef HAVE_UTIME_H
 
41
#include <utime.h>
 
42
#endif
 
43
 
 
44
#ifndef HAVE_MKTIME
 
45
/* define is in "replace.h" */
 
46
time_t rep_mktime(struct tm *t);
 
47
#endif
 
48
 
 
49
#ifndef HAVE_TIMEGM
 
50
/* define is in "replace.h" */
 
51
time_t rep_timegm(struct tm *tm);
 
52
#endif
 
53
 
 
54
#endif