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 cdc93828384584959cb547dec34d50c5db9e07bc..e3f950064899045e991aa51ad6fcb40d5f46d1a9 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 c86cdebe89564f3ef184d0c55dfd6c2ee3104f4d..2f5d88672d6fddf12d1f56b4ec3f655c404cae52 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>