OSDN Git Service

2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
authorMichael Chastain <mec.gnu@mindspring.com>
Thu, 5 Aug 2004 00:59:23 +0000 (00:59 +0000)
committerMichael Chastain <mec.gnu@mindspring.com>
Thu, 5 Aug 2004 00:59:23 +0000 (00:59 +0000)
* gdb.base/complex.c: Include <stdlib.h>.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/complex.c

index f09be36..bfc8961 100644 (file)
@@ -1,5 +1,9 @@
 2004-08-04  Michael Chastain  <mec.gnu@mindspring.com>
 
+       * gdb.base/complex.c: Include <stdlib.h>.
+
+2004-08-04  Michael Chastain  <mec.gnu@mindspring.com>
+
        * gdb.base/complex.c: Add copyright notice.
 
 2004-08-04  Michael Chastain  <mec.gnu@mindspring.com>
index dc69f6d..dabbdd6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2002, 2003
+/* Copyright 2002, 2003, 2004
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -21,6 +21,8 @@
 /* Test taken from GCC.  Verify that we can print a structure containing
    a complex number.  */
 
+#include <stdlib.h>
+
 typedef __complex__ float cf;
 struct x { char c; cf f; } __attribute__ ((__packed__));
 struct unpacked_x { char c; cf f; };