[PATCH] Protect solib.h against multiple inclusion

Jason R Thorpe thorpej@wasabisystems.com
Tue May 7 01:35:00 GMT 2002


This will help OS configurations which currently use solib-legacy to
transition to cross-debuggable shlibs on a target-by-target basis.

Committed as obvious.

	* solib.h: Protect against multiple inclusion.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>
-------------- next part --------------
Index: solib.h
===================================================================
RCS file: /cvs/src/src/gdb/solib.h,v
retrieving revision 1.8
diff -u -r1.8 solib.h
--- solib.h	1 Nov 2001 16:17:08 -0000	1.8
+++ solib.h	7 May 2002 08:30:08 -0000
@@ -19,6 +19,9 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef SOLIB_H
+#define SOLIB_H
+
 /* Forward decl's for prototypes */
 struct target_ops;
 
@@ -197,3 +200,5 @@
 /* Discard symbols that were auto-loaded from shared libraries. */
 
 extern void no_shared_libraries (char *ignored, int from_tty);
+
+#endif /* SOLIB_H */


More information about the Gdb-patches mailing list