Fixed build error for x86_64, i586 60/191160/1 accepted/tizen/5.0/unified/20181102.015458 accepted/tizen/unified/20181012.083521 submit/tizen/20181012.034608 submit/tizen_5.0/20181101.000003
authorsaerome.kim <saerome.kim@samsung.com>
Fri, 12 Oct 2018 03:41:26 +0000 (12:41 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Fri, 12 Oct 2018 03:41:26 +0000 (12:41 +0900)
Some variables are used for emulator only.
So it is required to seperate those variable depending on the build
environment.

Change-Id: Ied0c93060c025c85eb3b52b773ec38c4a7e932f5
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
src/manager/net_nfc_server_p2p.c

index 805c42cb483fc68569ec3c907d2f892a9ffd4445..d1ee4f2f52a366279393b70546933f76831ebba7 100644 (file)
@@ -46,15 +46,16 @@ static NetNfcGDbusP2p *p2p_skeleton = NULL;
 static void p2p_send_data_thread_func(gpointer user_data)
 {
        P2pSendData *p2p_data = (P2pSendData *) user_data;
+#ifndef TIZEN_EMULATOR
        net_nfc_error_e result;
        net_nfc_target_handle_s *handle;
-
+#endif
        g_assert(p2p_data != NULL);
        g_assert(p2p_data->p2p != NULL);
        g_assert(p2p_data->invocation != NULL);
-
+#ifndef TIZEN_EMULATOR
        handle = GUINT_TO_POINTER(p2p_data->p2p_handle);
-
+#endif
 #if TIZEN_EMULATOR
        net_nfc_gdbus_p2p_complete_send(p2p_data->p2p, p2p_data->invocation, NET_NFC_OK);
        net_nfc_util_clear_data(&p2p_data->data);