All of lore.kernel.org
 help / color / mirror / Atom feed
From: maxice8 <thinkabit.ukim@gmail.com>
To: ell@lists.01.org
Subject: [PATCH] ell/signal.h: use sigset_t instead of internal libc implementation
Date: Thu, 01 Nov 2018 06:27:42 -0300	[thread overview]
Message-ID: <20181101092742.24873-1-thinkabit.ukim@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

Fixes compilation on musl libc which doesn't show up the internal
implementation.

Error message:

  CC       ell/main.lo
In file included from ell/main.c:35:
ell/signal.h:39:40: error: unknown type name '__sigset_t'
 struct l_signal *l_signal_create(const __sigset_t *mask,
                                        ^~~~~~~~~~
---
 ell/signal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ell/signal.h b/ell/signal.h
index 0d4fdc8..98cf0fa 100644
--- a/ell/signal.h
+++ b/ell/signal.h
@@ -36,7 +36,7 @@ typedef void (*l_signal_notify_cb_t) (struct l_signal *signal,
 					uint32_t signo, void *user_data);
 typedef void (*l_signal_destroy_cb_t) (void *user_data);
 
-struct l_signal *l_signal_create(const __sigset_t *mask,
+struct l_signal *l_signal_create(const sigset_t *mask,
 			l_signal_notify_cb_t callback,
 			void *user_data, l_signal_destroy_cb_t destroy);
 void l_signal_remove(struct l_signal *signal);
-- 
2.19.1


             reply	other threads:[~2018-11-01  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01  9:27 maxice8 [this message]
2018-11-01  9:31 ` [PATCH] ell/signal.h: use sigset_t instead of internal libc implementation Marcel Holtmann
2018-11-01 17:00   ` Othman, Ossama

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181101092742.24873-1-thinkabit.ukim@gmail.com \
    --to=thinkabit.ukim@gmail.com \
    --cc=ell@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.