diff options
Diffstat (limited to 'meta-application-manager/recipes-application-framework/libcom-core/files/0002-remove-efl-libcom-core.patch')
-rw-r--r-- | meta-application-manager/recipes-application-framework/libcom-core/files/0002-remove-efl-libcom-core.patch | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/files/0002-remove-efl-libcom-core.patch b/meta-application-manager/recipes-application-framework/libcom-core/files/0002-remove-efl-libcom-core.patch new file mode 100644 index 0000000..b739c2d --- /dev/null +++ b/meta-application-manager/recipes-application-framework/libcom-core/files/0002-remove-efl-libcom-core.patch @@ -0,0 +1,88 @@ +--- a/src/util.c ++++ b/src/util.c +@@ -27,13 +27,14 @@ + #include "util.h" + + int errno; +-#if defined(_USE_ECORE_TIME_GET) +-static struct { +- clockid_t type; +-} s_info = { +- .type = CLOCK_MONOTONIC, +-}; +-#endif ++/* #if defined(_USE_ECORE_TIME_GET) ++ * static struct { ++ * clockid_t type; ++ * } s_info = { ++ * .type = CLOCK_MONOTONIC, ++ * }; ++ * #endif ++ */ + + const char *util_basename(const char *name) + { +@@ -49,30 +50,30 @@ + + double util_timestamp(void) + { +-#if defined(_USE_ECORE_TIME_GET) +- struct timespec ts; +- +- do { +- if (clock_gettime(s_info.type, &ts) == 0) { +- return ts.tv_sec + ts.tv_nsec / 1000000000.0f; +- } +- +- ErrPrint("%d: %s\n", s_info.type, strerror(errno)); +- if (s_info.type == CLOCK_MONOTONIC) { +- s_info.type = CLOCK_REALTIME; +- } else if (s_info.type == CLOCK_REALTIME) { +- struct timeval tv; +- if (gettimeofday(&tv, NULL) < 0) { +- ErrPrint("gettimeofday: %s\n", strerror(errno)); +- break; +- } +- +- return tv.tv_sec + tv.tv_usec / 1000000.0f; +- } +- } while (1); +- +- return 0.0f; +-#else ++/* #if defined(_USE_ECORE_TIME_GET) ++ * struct timespec ts; ++ * ++ * do { ++ * if (clock_gettime(s_info.type, &ts) == 0) { ++ * return ts.tv_sec + ts.tv_nsec / 1000000000.0f; ++ * } ++ * ++ * ErrPrint("%d: %s\n", s_info.type, strerror(errno)); ++ * if (s_info.type == CLOCK_MONOTONIC) { ++ * s_info.type = CLOCK_REALTIME; ++ * } else if (s_info.type == CLOCK_REALTIME) { ++ * struct timeval tv; ++ * if (gettimeofday(&tv, NULL) < 0) { ++ * ErrPrint("gettimeofday: %s\n", strerror(errno)); ++ * break; ++ * } ++ * ++ * return tv.tv_sec + tv.tv_usec / 1000000.0f; ++ * } ++ * } while (1); ++ * ++ * return 0.0f; ++#else*/ + struct timeval tv; + + if (gettimeofday(&tv, NULL) < 0) { +@@ -82,7 +83,7 @@ + } + + return (double)tv.tv_sec + (double)tv.tv_usec / 1000000.0f; +-#endif ++//#endif + } + + /* End of a file */ |