weliem / bluez_inc

A C library for Bluez (BLE) that hides all DBus communication. It doesn't get easier than this. This library can also be used in C++.
MIT License
84 stars 19 forks source link

Include errno.h for EINVAL #26

Closed morganbengtsson closed 5 months ago

morganbengtsson commented 5 months ago

Got build errors of the sort: error: ‘EINVAL’ undeclared (first use in this function) Hence including errno.h in a couple of places.

weliem commented 5 months ago

Are you on an older version of Linux? It compiles fine on my Ubuntu 22 machine?

morganbengtsson commented 5 months ago

This was when I was cross compiling it with a yocto sdk. Likely quite old stuff in there.

On Fri, 5 Apr 2024 at 08:12, Martijn van Welie @.***> wrote:

Are you on an older version of Linux? It compiles fine on my Ubuntu 22 machine?

— Reply to this email directly, view it on GitHub https://github.com/weliem/bluez_inc/pull/26#issuecomment-2039021745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALEDXZQZ5CN4X3QD5DCPQ3Y3Y6DJAVCNFSM6AAAAABFXN66RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZGAZDCNZUGU . You are receiving this because you authored the thread.Message ID: @.***>