Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inclusion of <sys/endian.h> #1873

Open
adr-adr opened this issue Mar 11, 2024 · 0 comments
Open

Fix inclusion of <sys/endian.h> #1873

adr-adr opened this issue Mar 11, 2024 · 0 comments

Comments

@adr-adr
Copy link

adr-adr commented Mar 11, 2024

Hi, I'm making a pkgsrc port of espeak-ng. This no-brainer patch fix the inclusion of <sys/endian.h> using config.h:

--- src/libespeak-ng/spect.c.orig	2022-04-02 19:24:41.000000000 +0000
+++ src/libespeak-ng/spect.c
@@ -25,7 +25,12 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
+#ifdef HAVE_SYS_ENDIAN_H
+#include <sys/endian.h>
+#else
 #include <endian.h>
+#endif
 
 #include <espeak-ng/espeak_ng.h>
 #include <espeak-ng/speak_lib.h>

spect.c.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant