From e492ed1d13b51f95b3b96e54d2c3d9076a1910b4 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Thu, 1 Jul 2010 20:22:42 +0200 Subject: Disable fdlist_* in utils for libusbmuxd Should help Windows builds (no poll.h) --- common/utils.c | 2 ++ common/utils.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/utils.c b/common/utils.c index 5f5e23b..db628ce 100644 --- a/common/utils.c +++ b/common/utils.c @@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # define util_error(...) fprintf(stderr, __VA_ARGS__) #endif +#ifdef USBMUXD_DAEMON void fdlist_create(struct fdlist *list) { list->count = 0; @@ -70,6 +71,7 @@ void fdlist_reset(struct fdlist *list) { list->count = 0; } +#endif void collection_init(struct collection *col) { diff --git a/common/utils.h b/common/utils.h index 95d3b44..ee79e48 100644 --- a/common/utils.h +++ b/common/utils.h @@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #ifndef __UTILS_H__ #define __UTILS_H__ +#ifdef USBMUXD_DAEMON #include enum fdowner { @@ -41,6 +42,7 @@ void fdlist_create(struct fdlist *list); void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events); void fdlist_free(struct fdlist *list); void fdlist_reset(struct fdlist *list); +#endif struct collection { void **list; -- cgit v1.1-32-gdbae