Bug 73786

Summary: #include <endian.h> does not work on FreeBSD
Product: libqmi Reporter: Ting-Wei Lan <lantw44>
Component: libqmiAssignee: Dan Williams <dcbw>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Ting-Wei Lan 2014-01-19 07:54:10 UTC
#include <endian.h> is used in src/libqmi-glib/qmi-message.c, but #include <sys/endian.h> should be used instead on FreeBSD and NetBSD. We should check the location of endian.h before using it.
Comment 1 Aleksander Morgado 2014-01-30 11:57:03 UTC
(In reply to comment #0)
> #include <endian.h> is used in src/libqmi-glib/qmi-message.c, but #include
> <sys/endian.h> should be used instead on FreeBSD and NetBSD. We should check
> the location of endian.h before using it.

err... this library is supposed to be used with the Linux kernel, as it uses character devices exposed by Linux >= 3.4. Not sure how this is applicable to *BSDs.
Comment 2 Allison Lortie (desrt) 2014-03-04 03:23:54 UTC
I agree -- the only reason we wanted qmi in the first place is because ModemManager uses it, and ModemManager itself is not even close to being able to run on non-Linux systems.

Let's set this one aside for now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.