From d52d342328761ba423c42fc5ed6fdc239578a625 Mon Sep 17 00:00:00 2001 From: Bryan Steele Date: Sat, 23 Jul 2016 16:34:04 -0400 Subject: [PATCH] sync compat/ --- compat/reallocarray.c | 3 ++- magic.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compat/reallocarray.c b/compat/reallocarray.c index ecb427b..ba9e777 100644 --- a/compat/reallocarray.c +++ b/compat/reallocarray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: reallocarray.c,v 1.2 2014/12/08 03:45:00 bcook Exp $ */ +/* $OpenBSD: reallocarray.c,v 1.3 2015/09/13 08:31:47 guenther Exp $ */ /* * Copyright (c) 2008 Otto Moerbeek * @@ -38,3 +38,4 @@ reallocarray(void *optr, size_t nmemb, size_t size) } return realloc(optr, size * nmemb); } +DEF_WEAK(reallocarray); diff --git a/magic.h b/magic.h index 5f92a4d..6c65f50 100644 --- a/magic.h +++ b/magic.h @@ -34,7 +34,7 @@ #ifndef __unused #define __unused #endif -#define DEF_WEAK(x) +#define DEF_WEAK(_x) #ifndef HAVE_FGETLN char *fgetln(FILE *_fp, size_t *_len);