From: hyunho Date: Tue, 5 Jan 2021 07:12:20 +0000 (+0900) Subject: Define _GNU_SOURCE X-Git-Tag: submit/tizen/20210319.051139~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ed15196892e225b2f1a4d338466ee5bda382e73;p=platform%2Fcore%2Fapi%2Fnotification.git Define _GNU_SOURCE strerror_r can return int if we do not define _GNU_SOURCE Change-Id: I18b77fc251c323716ac9a87cda05872b43147387 Signed-off-by: hyunho --- diff --git a/notification-ex/shared_file.cc b/notification-ex/shared_file.cc index cdc93828..e3f95006 100644 --- a/notification-ex/shared_file.cc +++ b/notification-ex/shared_file.cc @@ -13,6 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include #include diff --git a/notification/src/notification_shared_file.c b/notification/src/notification_shared_file.c index c86cdebe..2f5d8867 100644 --- a/notification/src/notification_shared_file.c +++ b/notification/src/notification_shared_file.c @@ -13,6 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include #include