All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@mandrakesoft.com>
To: linux mips mailing list <linux-mips@linux-mips.org>,
	Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH]: protect includes from re-included them
Date: 18 Dec 2002 02:42:05 +0100	[thread overview]
Message-ID: <m2vg1sqf0y.fsf@demo.mitica> (raw)


Hi
        this included don't have the standard protection :(

Later, Juan.

Index: drivers/sgi/char/gconsole.h
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/gconsole.h,v
retrieving revision 1.5
diff -u -r1.5 gconsole.h
--- drivers/sgi/char/gconsole.h	3 Mar 1998 16:57:28 -0000	1.5
+++ drivers/sgi/char/gconsole.h	18 Dec 2002 00:49:22 -0000
@@ -1,3 +1,7 @@
+#ifndef _SGI_GCONSOLE_H
+#define _SGI_GCONSOLE_H
+
+
 /*
  * This is a temporary measure, we should eventually migrate to
  * Gert's generic graphic console code.
@@ -31,3 +35,5 @@
 
 extern void disable_gconsole (void);
 extern void enable_gconsole (void);
+
+#endif /* _SGI_GCONSOLE */
Index: drivers/sgi/char/graphics.h
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/graphics.h,v
retrieving revision 1.9.6.1
diff -u -r1.9.6.1 graphics.h
--- drivers/sgi/char/graphics.h	5 Aug 2002 23:53:40 -0000	1.9.6.1
+++ drivers/sgi/char/graphics.h	18 Dec 2002 01:28:49 -0000
@@ -1,3 +1,6 @@
+#ifndef _SGI_GRAPHICS_H
+#define _SGI_GRAPHICS_H
+
 #define MAXCARDS 4
 
 struct graphics_ops {
@@ -25,3 +28,5 @@
 
 void shmiq_init (void);
 void streamable_init (void);
+
+#endif /* _SGI_GRAPHICS_H */



-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

                 reply	other threads:[~2002-12-18  1:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2vg1sqf0y.fsf@demo.mitica \
    --to=quintela@mandrakesoft.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.