This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/5.2] Fix build problem with bcache.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 15 Apr 2002 01:25:16 -0400
- Subject: [patch/5.2] Fix build problem with bcache.c
Committed the attached.
Brings it into line with GDB's coding standard. "defs.h" includes stuff
to (re)define "const" and consequently the sequence:
#include <stdio.h>
getopt (.... const ...)
#include "defs.h"
getopt (.... ....)
was occuring (i.e. the const would disapear).
Andrew
2002-04-15 Andrew Cagney <ac131313@redhat.com>
* bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
Update copyright.
Index: bcache.c
===================================================================
RCS file: /cvs/src/src/gdb/bcache.c,v
retrieving revision 1.7
diff -u -r1.7 bcache.c
--- bcache.c 23 Feb 2002 03:57:26 -0000 1.7
+++ bcache.c 15 Apr 2002 05:18:07 -0000
@@ -1,7 +1,8 @@
/* Implement a cached obstack.
Written by Fred Fish <fnf@cygnus.com>
Rewritten by Jim Blandy <jimb@cygnus.com>
- Copyright 1999, 2000 Free Software Foundation, Inc.
+
+ Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,13 +21,13 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <stddef.h>
-#include <stdlib.h>
-
#include "defs.h"
#include "obstack.h"
#include "bcache.h"
#include "gdb_string.h" /* For memcpy declaration */
+
+#include <stddef.h>
+#include <stdlib.h>
/* The old hash function was stolen from SDBM. This is what DB 3.0 uses now,
* and is better than the old one.