diff options
author | peter <peter@FreeBSD.org> | 2003-01-08 17:05:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-01-08 17:05:52 +0000 |
commit | 7033484c0c007cfaa421cb6421a69de8e604d27d (patch) | |
tree | 27d2844477c546605ddda600a447fc10a59c0f27 /contrib | |
parent | 2721b74be273163e42bb5646e199b48cd319ad52 (diff) | |
download | FreeBSD-src-7033484c0c007cfaa421cb6421a69de8e604d27d.zip FreeBSD-src-7033484c0c007cfaa421cb6421a69de8e604d27d.tar.gz |
Add #include <stdlib.h> so that "s->strings = realloc(...)" doesn't segfault
on ia64. (This file isn't vendor branched)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/com_err/getarg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/com_err/getarg.c b/contrib/com_err/getarg.c index 6972e69..80f76ab 100644 --- a/contrib/com_err/getarg.c +++ b/contrib/com_err/getarg.c @@ -34,6 +34,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #if 0 @@ -43,6 +45,7 @@ RCSID("$Id: getarg.c,v 1.25 1998/11/22 09:45:05 assar Exp $"); #include <sys/ttycom.h> #include <time.h> #include <stdio.h> +#include <stdlib.h> #include "getarg.h" #define ISFLAG(X) ((X).type == arg_flag || (X).type == arg_negative_flag) |