[IOT-2539] remove the -Wcpp warning from octimer.c 87/22187/2
authorGeorge Nash <george.nash@intel.com>
Thu, 27 Jul 2017 17:49:05 +0000 (10:49 -0700)
committerRick Bell <richard.s.bell@intel.com>
Thu, 21 Sep 2017 16:48:25 +0000 (16:48 +0000)
commiteb663656d3f9975d13c7eb632213dd5d046c03ba
tree4bb8c27ea689daf4ad88777ce15e73562088001b
parent60430d7ebdf457257d474b1c65b0ff452db1b9d7
[IOT-2539] remove the -Wcpp warning from octimer.c

This warning comes from teh glibc library. The library
has a # warning in the code if _BSD_SOURCE or _SVID_SOURCE
are defined in the code. The code that was enabled using
the two macros has been depricated. The new _DEFAULT_SOURCE
macro should be used to enable the features that were
enabled by the old macros.

If you need to build with old and newer versions of glibc
the glibc release notes recomend using both the old and
new macros.
see: https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes

Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: I000d3bbfe4fdc473066d8c50862070c8b49788ca
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21655
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit 97bc6dcae86b4d97953a66abee12ad09acb02d00)
resource/c_common/octimer/src/octimer.c