|
Packit Service |
99d1c0 |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
Packit Service |
99d1c0 |
/* include/k5-gmt_mktime.h */
|
|
Packit Service |
99d1c0 |
/*
|
|
Packit Service |
99d1c0 |
* Copyright 2008 Massachusetts Institute of Technology.
|
|
Packit Service |
99d1c0 |
* All Rights Reserved.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* Export of this software from the United States of America may
|
|
Packit Service |
99d1c0 |
* require a specific license from the United States Government.
|
|
Packit Service |
99d1c0 |
* It is the responsibility of any person or organization contemplating
|
|
Packit Service |
99d1c0 |
* export to obtain such a license before exporting.
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
|
|
Packit Service |
99d1c0 |
* distribute this software and its documentation for any purpose and
|
|
Packit Service |
99d1c0 |
* without fee is hereby granted, provided that the above copyright
|
|
Packit Service |
99d1c0 |
* notice appear in all copies and that both that copyright notice and
|
|
Packit Service |
99d1c0 |
* this permission notice appear in supporting documentation, and that
|
|
Packit Service |
99d1c0 |
* the name of M.I.T. not be used in advertising or publicity pertaining
|
|
Packit Service |
99d1c0 |
* to distribution of the software without specific, written prior
|
|
Packit Service |
99d1c0 |
* permission. Furthermore if you modify this software you must label
|
|
Packit Service |
99d1c0 |
* your software as modified software and not distribute it in such a
|
|
Packit Service |
99d1c0 |
* fashion that it might be confused with the original M.I.T. software.
|
|
Packit Service |
99d1c0 |
* M.I.T. makes no representations about the suitability of
|
|
Packit Service |
99d1c0 |
* this software for any purpose. It is provided "as is" without express
|
|
Packit Service |
99d1c0 |
* or implied warranty.
|
|
Packit Service |
99d1c0 |
*/
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
/*
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* GMT struct tm conversion
|
|
Packit Service |
99d1c0 |
*
|
|
Packit Service |
99d1c0 |
* Because of ordering of things in the UNIX build, we can't just keep
|
|
Packit Service |
99d1c0 |
* the declaration in k5-int.h and include it in
|
|
Packit Service |
99d1c0 |
* util/support/gmt_mktime.c, since k5-int.h includes krb5.h which
|
|
Packit Service |
99d1c0 |
* hasn't been built when gmt_mktime.c gets compiled. Hence this
|
|
Packit Service |
99d1c0 |
* silly little helper header.
|
|
Packit Service |
99d1c0 |
*/
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
#ifndef K5_GMT_MKTIME_H
|
|
Packit Service |
99d1c0 |
#define K5_GMT_MKTIME_H
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
#include "autoconf.h"
|
|
Packit Service |
99d1c0 |
#ifdef HAVE_SYS_TIME_H
|
|
Packit Service |
99d1c0 |
#include <sys/time.h>
|
|
Packit Service |
99d1c0 |
#ifdef TIME_WITH_SYS_TIME
|
|
Packit Service |
99d1c0 |
#include <time.h>
|
|
Packit Service |
99d1c0 |
#endif
|
|
Packit Service |
99d1c0 |
#else
|
|
Packit Service |
99d1c0 |
#include <time.h>
|
|
Packit Service |
99d1c0 |
#endif
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
time_t krb5int_gmt_mktime (struct tm *);
|
|
Packit Service |
99d1c0 |
|
|
Packit Service |
99d1c0 |
#endif /* K5_GMT_MKTIME_H */
|