Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix build with the recent libbsd.
Vsevolod Stakhov committed 9 years ago
commit 00bc417cab76b028ad7982441e88185d4658da7e
parent d7f6ae8
2 files changed +12 -1
modified compat/bsd_compat.h
@@ -38,6 +38,13 @@
#endif

#ifdef HAVE_BSD_SYS_CDEFS_H
+

+
/* Deal with broken __DECONST */
+
#ifndef __uintptr_t
+
# include <stdint.h>
+
# define __uintptr_t uintptr_t
+
#endif
+

#include <bsd/sys/cdefs.h>
#endif

modified compat/funopen.c
@@ -20,7 +20,11 @@
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
-
#define _GNU_SOURCE
+
#ifndef _GNU_SOURCE
+
#  define _GNU_SOURCE
+
#endif
+
#include <sys/types.h>
+
#include <stdint.h>
#include <stdio.h>

#include "bsd_compat.h"