Fix _GNU_SOURCE redefined warning
authorNan Xiao <xiao_nan@dsi.a-star.edu.sg>
Mon, 28 Aug 2017 03:44:19 +0000 (11:44 +0800)
committerBrenden Blanco <bblanco@gmail.com>
Mon, 28 Aug 2017 04:18:52 +0000 (21:18 -0700)
src/cc/libbpf.c

index 0da8e2c..928d7d7 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <arpa/inet.h>
 #include <errno.h>