fixed segmentation fault issue when parsing query with rt including period
authorJaewook Jung <jw0213.jung@samsung.com>
Tue, 2 Aug 2016 04:23:10 +0000 (13:23 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 3 Aug 2016 04:29:41 +0000 (04:29 +0000)
fixed segmentation fault issue when parsing query with rt including period

Change-Id: Ibff0067acc8ac4df0b608c691dadedd50d320d3b
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9919
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/ocresource.c

index 6479069..a559413 100755 (executable)
 // For POSIX.1-2001 base specification,
 // Refer http://pubs.opengroup.org/onlinepubs/009695399/
 #define _POSIX_C_SOURCE 200112L
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 
-#ifdef WITH_STRING_H
+#ifdef HAVE_STRING_H
 #include <string.h>
 #endif
-#ifdef WITH_STRING_H
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif