This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[COMMITTED PATCH] gold: missing "libiberty.h" include for vasprintf use.
- From: Roland McGrath <mcgrathr at google dot com>
- To: binutils at sourceware dot org
- Date: Thu, 1 Nov 2012 11:16:26 -0700
- Subject: [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"