Moin,
the header file exitcode.h lacks an include guard. This results in annoying
error messages from the compiler about multiple declarations.
The attached patch fixes this problem by adding an include guard.
- Frerich
Index: exitcode.h
===================================================================
RCS file: /cvsroot/distcc/src/exitcode.h,v
retrieving revision 1.16
diff -u -3 -p -r1.16 exitcode.h
--- exitcode.h 11 Jun 2003 04:06:32 -0000 1.16
+++ exitcode.h 30 Jul 2003 17:47:14 -0000
@@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+#ifndef _DISTCC_EXITCODE_H
+#define _DISTCC_EXITCODE_H
/**
* @file
@@ -52,3 +54,5 @@ enum dcc_exitcode {
EXIT_NO_HOSTS = 116,
EXIT_GONE = 117, /**< No longer relevant */
};
+
+#endif /* _DISTCC_EXITCODE_H */
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc