Ticket #44755: src-libopts-autoopts.h.patch

File src-libopts-autoopts.h.patch, 784 bytes (added by Schamschula (Marius Schamschula), 10 years ago)
  • src/libopts/autoopts.h

    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
     
    3232
    3333#ifndef AUTOGEN_AUTOOPTS_H
    3434#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
    3643
    3744#define AO_NAME_LIMIT           127
    3845#define AO_NAME_SIZE            ((size_t)(AO_NAME_LIMIT + 1))