e_ostime.h 834 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OPENSSL_E_OSTIME_H
  10. # define OPENSSL_E_OSTIME_H
  11. # pragma once
  12. # include <openssl/macros.h>
  13. # include <openssl/opensslconf.h>
  14. # include <openssl/e_os2.h>
  15. /*
  16. * This header guarantees that 'struct timeval' will be available. It includes
  17. * the minimum headers needed to facilitate this. This may still be a
  18. * substantial set of headers on some platforms (e.g. <winsock2.h> on Win32).
  19. */
  20. # if defined(OPENSSL_SYS_WINDOWS)
  21. # include <winsock2.h>
  22. # else
  23. # include <sys/time.h>
  24. # endif
  25. #endif