Define _GNU_SOURCE macro 01/135301/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Jun 2017 22:40:42 +0000 (07:40 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Jun 2017 22:40:42 +0000 (07:40 +0900)
To use strerror_r() of the GNU-specific version,
the macro should be defined.

Change-Id: Ia024e0555adec55843dad598380ceb4520761de3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c
widget_viewer_sdk/src/main.c

index d98cbb3d6ef18c25d94d67b70ef724bd0e7fb52b..da3e11aa22ae501755095a99511dc7db60492355 100644 (file)
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <libintl.h>
 #include <unistd.h>
index a1a17d6560792fc31d59dd16cd47f4ef320412ff..4d4c8605d9b50bf0bd7cadfc7b331e0209392890 100644 (file)
@@ -13,6 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+#define _GNU_SOURCE
 #include <glib.h>
 #include <Elementary.h>
 #include <app.h>