systemd: add missing definitions for __compar_d_fn_t with musl

This commit is contained in:
Rasmus Thomsen 2020-06-06 15:19:50 +02:00 committed by Thomas Haller
parent 4cf41a43fd
commit b28c9e4535
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -195,6 +195,13 @@ _nm_gettid(void)
#define HAVE_RT_SIGQUEUEINFO 0
#endif
#ifndef __COMPAR_FN_T
#define __COMPAR_FN_T
typedef int (*__compar_fn_t)(const void *, const void *);
typedef __compar_fn_t comparison_fn_t;
typedef int (*__compar_d_fn_t)(const void *, const void *, void *);
#endif
#endif /* (NETWORKMANAGER_COMPILATION) & NM_NETWORKMANAGER_COMPILATION_WITH_SYSTEMD */
/*****************************************************************************/