This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add include guard to util.h
authorDavid Mitchell <davem@iabyn.com>
Sun, 16 Apr 2017 19:49:45 +0000 (20:49 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 16 Apr 2017 19:51:52 +0000 (20:51 +0100)
see RT #131110 for the bikeshedding on what name to use.

Based on an original patch by Jim Schneider

util.c

diff --git a/util.c b/util.c
index b324af4..2ca0291 100644 (file)
--- a/util.c
+++ b/util.c
  * dieing stuff, plus wrappers for malloc code.
  */
 
+#ifndef PERL_UTIL_H_
+#define PERL_UTIL_H_
+
+
 #include "EXTERN.h"
 #define PERL_IN_UTIL_C
 #include "perl.h"
@@ -6678,6 +6682,8 @@ Perl_dtrace_probe_phase(pTHX_ enum perl_phase phase)
 
 #endif
 
+#endif /* PERL_UTIL_H_ */
+
 /*
  * ex: set ts=8 sts=4 sw=4 et:
  */