Merge pull request #868 from angt/fix-def-enosys

Define ENOSYS where it is useful
This commit is contained in:
Frank Denis
2019-09-12 20:16:16 +02:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
@@ -16,10 +16,6 @@
#include "private/common.h"
#include "private/sse2_64_32.h"
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
# ifdef __GNUC__
@@ -315,6 +311,10 @@ crypto_aead_aegis256_is_available(void)
#else
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
int
crypto_aead_aegis256_encrypt_detached(unsigned char *c,
unsigned char *mac,
@@ -30,10 +30,6 @@
#include <tmmintrin.h>
#include <wmmintrin.h>
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(__INTEL_COMPILER) || defined(_bswap64)
#elif defined(_MSC_VER)
# define _bswap64(a) _byteswap_uint64(a)
@@ -919,6 +915,10 @@ crypto_aead_aes256gcm_is_available(void)
#else
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
int
crypto_aead_aes256gcm_encrypt_detached(unsigned char *c,
unsigned char *mac,