With glibc 2.20 (and newer), defining _BSD_SOURCE will now generate compiler warnings similar to:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] See the glibc 2.20 release notes, https://lwn.net/Articles/611162/. This patch contains the recommended changes from _BSD_SOURCE to _DEFAULT_SOURCE. Signed-off-by: Bernhard Nortmann <[email protected]> --- fel.c | 4 ++-- phoenix_info.c | 4 ++-- pio.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fel.c b/fel.c index ec9a3ed..78c1465 100644 --- a/fel.c +++ b/fel.c @@ -15,8 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* Needs _BSD_SOURCE for htole and letoh */ -#define _BSD_SOURCE +/* Needs _DEFAULT_SOURCE for htole and letoh */ +#define _DEFAULT_SOURCE #define _NETBSD_SOURCE #include <libusb.h> diff --git a/phoenix_info.c b/phoenix_info.c index b76c5e4..c897ccf 100644 --- a/phoenix_info.c +++ b/phoenix_info.c @@ -15,8 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* Needs _BSD_SOURCE for htole and letoh */ -#define _BSD_SOURCE +/* Needs _DEFAULT_SOURCE for htole and letoh */ +#define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> diff --git a/pio.c b/pio.c index 7ef4514..66a99ff 100644 --- a/pio.c +++ b/pio.c @@ -17,8 +17,8 @@ * MA 02111-1307 USA */ -/* needs _BSD_SOURCE for htole and letoh */ -#define _BSD_SOURCE +/* needs _DEFAULT_SOURCE for htole and letoh */ +#define _DEFAULT_SOURCE #include <errno.h> #include <stdio.h> -- 2.4.6 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
