Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B106200C68 for ; Wed, 3 May 2017 08:44:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 999E1160BB5; Wed, 3 May 2017 06:44:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0B0C160BAA for ; Wed, 3 May 2017 08:44:25 +0200 (CEST) Received: (qmail 67021 invoked by uid 500); 3 May 2017 06:44:24 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 67010 invoked by uid 99); 3 May 2017 06:44:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 06:44:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ADA0EE038B; Wed, 3 May 2017 06:44:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: astitcher@apache.org To: commits@qpid.apache.org Message-Id: <6a41fa6a2f054938b1b8ac42133bf6ec@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: qpid-proton git commit: PROTON-1472: Fix epoll compile errors on Fedora Date: Wed, 3 May 2017 06:44:24 +0000 (UTC) archived-at: Wed, 03 May 2017 06:44:26 -0000 Repository: qpid-proton Updated Branches: refs/heads/master f8997c083 -> 050dc328c PROTON-1472: Fix epoll compile errors on Fedora Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/050dc328 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/050dc328 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/050dc328 Branch: refs/heads/master Commit: 050dc328ccdcf6ae3416183cd13154c9730da914 Parents: f8997c0 Author: Andrew Stitcher Authored: Wed May 3 02:40:17 2017 -0400 Committer: Andrew Stitcher Committed: Wed May 3 02:43:34 2017 -0400 ---------------------------------------------------------------------- proton-c/src/proactor/epoll.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/050dc328/proton-c/src/proactor/epoll.c ---------------------------------------------------------------------- diff --git a/proton-c/src/proactor/epoll.c b/proton-c/src/proactor/epoll.c index 0f09c7c..94789f2 100644 --- a/proton-c/src/proactor/epoll.c +++ b/proton-c/src/proactor/epoll.c @@ -20,7 +20,7 @@ */ /* Enable POSIX features for pthread.h */ -#define _POSIX_C_SOURCE 200809L +#define _GNU_SOURCE #include "../core/log_private.h" #include "proactor-internal.h" @@ -90,7 +90,6 @@ static void pmutex_finalize(pthread_mutex_t *m) { pthread_mutex_destroy(m); } static inline void lock(pmutex *m) { pthread_mutex_lock(m); } static inline void unlock(pmutex *m) { pthread_mutex_unlock(m); } -typedef struct psocket_t psocket_t; typedef enum { WAKE, /* see if any work to do in proactor/psocket context */ PCONNECTION_IO, @@ -100,7 +99,7 @@ typedef enum { // Data to use with epoll. typedef struct epoll_extended_t { - psocket_t *psocket; // pconnection, listener, or NULL -> proactor + struct psocket_t *psocket; // pconnection, listener, or NULL -> proactor int fd; epoll_type_t type; // io/timer/wakeup uint32_t wanted; // events to poll for @@ -120,7 +119,7 @@ typedef struct ptimer_t { int skip_count; } ptimer_t; -static bool ptimer_init(ptimer_t *pt, psocket_t *ps) { +static bool ptimer_init(ptimer_t *pt, struct psocket_t *ps) { pt->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); if (pt->timerfd < 0) return false; pmutex_init(&pt->mutex); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org