gnutls: fix compilation on 10.7

Fixes Homebrew/homebrew#33470.
This commit is contained in:
Jack Nagel 2014-10-22 19:38:53 -05:00
parent 80c4d2939c
commit 8ac0cc78a2

View file

@ -29,8 +29,8 @@ class Gnutls < Formula
cause "Undefined symbols when linking" cause "Undefined symbols when linking"
end end
# Fix use of stdnoreturn header on Lion # Fix libopts Makefile.in, corresponds to upstream commit
# https://www.gitorious.org/gnutls/gnutls/commit/9d2a2d17c0e483f056f98084955fba82b166bd56 # https://gitorious.org/gnutls/gnutls/commit/db3f46aeca90f6dce42592dd723a15f988264852
patch :DATA patch :DATA
def install def install
@ -62,21 +62,16 @@ class Gnutls < Formula
end end
__END__ __END__
--- a/src/libopts/autoopts.h diff --git a/src/libopts/Makefile.in b/src/libopts/Makefile.in
+++ b/src/libopts/autoopts.h index 3be797a..8e6d3eb 100644
@@ -32,7 +32,14 @@ --- a/src/libopts/Makefile.in
+++ b/src/libopts/Makefile.in
@@ -1546,7 +1546,7 @@ uninstall-am:
tags tags-am uninstall uninstall-am
#ifndef AUTOGEN_AUTOOPTS_H
#define AUTOGEN_AUTOOPTS_H
-#include <stdnoreturn.h>
+
+#ifdef HAVE_STDNORETURN_H
+# include <stdnoreturn.h>
+#else
+# ifndef noreturn
+# define noreturn
+# endif
+#endif
#define AO_NAME_LIMIT 127 -+_NORETURN_H=$(srcdir)/compat/_Noreturn.h
#define AO_NAME_SIZE ((size_t)(AO_NAME_LIMIT + 1)) +_NORETURN_H=$(srcdir)/compat/_Noreturn.h
@GL_GENERATE_STDNORETURN_H_TRUE@stdnoreturn.h: stdnoreturn.in.h $(top_builddir)/config.status $(_NORETURN_H)
@GL_GENERATE_STDNORETURN_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
@GL_GENERATE_STDNORETURN_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \