Bug 73786 - #include <endian.h> does not work on FreeBSD
Summary: #include <endian.h> does not work on FreeBSD
Status: RESOLVED WONTFIX
Alias: None
Product: libqmi
Classification: Unclassified
Component: libqmi (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: Dan Williams
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-19 07:54 UTC by Ting-Wei Lan
Modified: 2014-03-04 03:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.