]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util.c: include required header, no longer masked by gnulib
authorJim Meyering <meyering@redhat.com>
Fri, 15 Jan 2010 09:31:23 +0000 (10:31 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 08:50:08 +0000 (09:50 +0100)
Until recently, some gnulib-generated replacement headers
included *other* headers that were not strictly necessary,
thus masking the need in this file for an explicit <stdlib.h>.
* src/util/util.c: Include <stdlib.h> for declarations of e.g.,
strtol, random_r, getenv, etc.

src/util/util.c

index 45ca65750aac0597c21151e1daa4acf6a384e851..67fae0025363e674736f47fceb02910ade0cdaf4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * utils.c: common, generic utility functions
  *
- * Copyright (C) 2006, 2007, 2008, 2009 Red Hat, Inc.
+ * Copyright (C) 2006-2010 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  * Copyright (C) 2006, 2007 Binary Karma
  * Copyright (C) 2006 Shuveb Hussain
@@ -28,6 +28,7 @@
 
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>