Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:42

0001 /*
0002  * Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 #ifndef OPENSSL_E_OSTIME_H
0011 # define OPENSSL_E_OSTIME_H
0012 # pragma once
0013 
0014 # include <openssl/macros.h>
0015 # include <openssl/opensslconf.h>
0016 # include <openssl/e_os2.h>
0017 
0018 /*
0019  * This header guarantees that 'struct timeval' will be available. It includes
0020  * the minimum headers needed to facilitate this. This may still be a
0021  * substantial set of headers on some platforms (e.g. <winsock2.h> on Win32).
0022  */
0023 
0024 # if defined(OPENSSL_SYS_WINDOWS)
0025 #  if !defined(_WINSOCKAPI_)
0026     /*
0027      * winsock2.h defines _WINSOCK2API_ and both winsock2.h and winsock.h define
0028      * _WINSOCKAPI_. Both of these provide struct timeval. Don't include
0029      * winsock2.h if either header has been included to avoid breakage with
0030      * applications that prefer to use <winsock.h> over <winsock2.h>.
0031      */
0032 #   include <winsock2.h>
0033 #  endif
0034 # else
0035 #  include <sys/time.h>
0036 # endif
0037 
0038 #endif