better fix for __bounded removal
This commit is contained in:
parent
d81b9bda51
commit
388a1655d4
11
configure.ac
11
configure.ac
@ -8,14 +8,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|||||||
AC_SUBST([USER_CFLAGS], "-O2 $CFLAGS")
|
AC_SUBST([USER_CFLAGS], "-O2 $CFLAGS")
|
||||||
CFLAGS="$CFLAGS -Wall -Werror -std=c99 -g -Wno-pointer-sign -DHAVE_CRYPTODEV -DLIBRESSL_INTERNAL"
|
CFLAGS="$CFLAGS -Wall -Werror -std=c99 -g -Wno-pointer-sign -DHAVE_CRYPTODEV -DLIBRESSL_INTERNAL"
|
||||||
|
|
||||||
case $target_os in
|
|
||||||
*openbsd*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
CFLAGS="$CFLAGS -D__bounded__(x,y,z)"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $target_os in
|
case $target_os in
|
||||||
*darwin*)
|
*darwin*)
|
||||||
TARGET_OS=darwin;
|
TARGET_OS=darwin;
|
||||||
@ -30,6 +22,9 @@ case $target_os in
|
|||||||
CFLAGS="$CFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP"
|
CFLAGS="$CFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP"
|
||||||
AC_SUBST([PLATFORM_LDADD], ['-lnsl -lsocket'])
|
AC_SUBST([PLATFORM_LDADD], ['-lnsl -lsocket'])
|
||||||
;;
|
;;
|
||||||
|
*openbsd*)
|
||||||
|
AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded])
|
||||||
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -10,4 +10,8 @@ typedef uint8_t u_int8_t;
|
|||||||
typedef uint32_t u_int32_t;
|
typedef uint32_t u_int32_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
|
||||||
|
# define __bounded__(x, y, z)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user