This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] gold: missing "libiberty.h" include for vasprintf use.


When libiberty rather than the system <stdio.h> is providing the
declaration for vasprintf, there is a compiler warning in gold.

Committed as obvious.


Thanks,
Roland


gold/
2012-11-01  Roland McGrath  <mcgrathr@google.com>

	* nacl.cc: Include "libiberty.h" for vasprintf declaration.

diff --git a/gold/nacl.cc b/gold/nacl.cc
index 71be4e9..b22248c 100644
--- a/gold/nacl.cc
+++ b/gold/nacl.cc
@@ -22,6 +22,7 @@
 #include "gold.h"

 #include <cstdio>
+#include "libiberty.h"

 #include "nacl.h"
 #include "elfcpp.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]