raspberrypi / utils

A collection of scripts and simple applications
BSD 3-Clause "New" or "Revised" License
134 stars 41 forks source link

Add `#define _GNU_SOURCE` so pinctrl builds on earlier glibc? #68

Closed 6by9 closed 5 months ago

6by9 commented 5 months ago

Noted on https://forums.raspberrypi.com/viewtopic.php?t=364773 that pinctrl won't build on Buster. reallocarray was only added to the standard glibc in 2.29.

Adding #define _GNU_SOURCE gets it building, but do we care enough for the obsolete releases?

pelwell commented 5 months ago

Fixed by https://github.com/raspberrypi/utils/commit/e43a8e2b90405bf99678d629fc3b42a4337e35bb.