]> git.ozlabs.org Git - ccan/blobdiff - ccan/tap/tap.c
Handle where _GNU_SOURCE already defined.
[ccan] / ccan / tap / tap.c
index 5c475bcce97cd7232ca7a950fc0ceba20ada533b..0eaec9a5f852827d879553cfd50cd8bdf252f2c6 100644 (file)
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#define _GNU_SOURCE
+/* FIXME: The real fix is an asprintf module. */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>