From 7df42875d1a77189374ca0a9195720cef200c601 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon, 25 Aug 2014 19:29:55 +0200
Subject: [PATCH] check for stdnoreturn.h presence
---
src/libopts/autoopts.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/libopts/autoopts.h b/src/libopts/autoopts.h
index 27a907c..634a60c 100644
|
|
|
32 | 32 | |
33 | 33 | #ifndef AUTOGEN_AUTOOPTS_H |
34 | 34 | #define AUTOGEN_AUTOOPTS_H |
35 | | #include <stdnoreturn.h> |
| 35 | |
| 36 | #ifdef HAVE_STDNORETURN_H |
| 37 | # include <stdnoreturn.h> |
| 38 | #else |
| 39 | # ifndef noreturn |
| 40 | # define noreturn |
| 41 | # endif |
| 42 | #endif |
36 | 43 | |
37 | 44 | #define AO_NAME_LIMIT 127 |
38 | 45 | #define AO_NAME_SIZE ((size_t)(AO_NAME_LIMIT + 1)) |