summaryrefslogtreecommitdiff
blob: 49bf1f9a8602e1a262c1890059e0af2eda016079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 7a60464264bafb27c4bbaab39744b267d671f41b Mon Sep 17 00:00:00 2001
From: Justin Bronder <jsbronder@gmail.com>
Date: Tue, 16 Nov 2010 16:31:25 -0500
Subject: [PATCH 2/3] fix implicit declaration warnings

vasprintf and asprintf require _GNU_SOURCE.

Thanks to Kacper Kowalik <xarthisius@gentoo.org>
---
 src/drmaa/src/error.c  |    1 +
 src/drmaa/src/submit.c |    1 +
 src/drmaa/src/wait.c   |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/drmaa/src/error.c b/src/drmaa/src/error.c
index b848041..4a65b47 100644
--- a/src/drmaa/src/error.c
+++ b/src/drmaa/src/error.c
@@ -23,6 +23,7 @@
 # include <pbs_config.h>
 #endif
 
+#define _GNU_SOURCE // asprintf
 #include <unistd.h>
 
 #include <stdio.h>
diff --git a/src/drmaa/src/submit.c b/src/drmaa/src/submit.c
index e9b404c..9f06620 100644
--- a/src/drmaa/src/submit.c
+++ b/src/drmaa/src/submit.c
@@ -23,6 +23,7 @@
 # include <pbs_config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <sys/stat.h>
 #include <unistd.h>
 #include <limits.h>
diff --git a/src/drmaa/src/wait.c b/src/drmaa/src/wait.c
index ecb2ed4..2ef7600 100644
--- a/src/drmaa/src/wait.c
+++ b/src/drmaa/src/wait.c
@@ -23,6 +23,7 @@
 # include <pbs_config.h>
 #endif
 
+#define _GNU_SOURCE // vasprintf
 #include <assert.h>
 #include <limits.h>
 #include <signal.h>
-- 
1.7.2.2