Define _GNU_SOURCE 51/250851/1
authorhyunho <hhstark.kang@samsung.com>
Tue, 5 Jan 2021 07:12:20 +0000 (16:12 +0900)
committerhyunho <hhstark.kang@samsung.com>
Tue, 5 Jan 2021 07:13:36 +0000 (16:13 +0900)
strerror_r can return int if we do not define _GNU_SOURCE

Change-Id: I18b77fc251c323716ac9a87cda05872b43147387
Signed-off-by: hyunho <hhstark.kang@samsung.com>
notification-ex/shared_file.cc
notification/src/notification_shared_file.c

index cdc9382..e3f9500 100644 (file)
@@ -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 <unistd.h>
 #include <dlog.h>
index c86cdeb..2f5d886 100644 (file)
@@ -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 <stdio.h>
 #include <string.h>