[FIX] TV emulator build (pthread 2.18) 83/25683/4
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 8 Aug 2014 06:39:04 +0000 (10:39 +0400)
committerVitaliy Andreevich <v.cherepanov@samsung.com>
Wed, 13 Aug 2014 08:14:58 +0000 (01:14 -0700)
Change-Id: I7714a73c0eb336e7b9e6c52c22538b9e33fcf8c8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
probe_thread/libdathread.c

index 9bd0793..942f86e 100644 (file)
@@ -447,6 +447,16 @@ int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
        return ret;
 }
 
+#if 0
+/* TODO FIXME
+ * this code is disabled because it can not be compiled with some versions
+ * of libpthread. Next error occures:
+ *   multiple definition of `pthread_attr_getstackaddr'
+ *   multiple definition of `pthread_attr_setstackaddr'
+ * Possible because of deprecated attribute
+ *
+ * happens on pthread-2.18 (target TV emul), not happens on pthread-2.13
+ */
 int pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 {
        pthread_t thread = 0;
@@ -483,6 +493,7 @@ int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
 
        return ret;
 }
+#endif
 
 int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inheritsched)
 {