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](https://github.com/espeak-ng/espeak-ng/files/14552378/spect.c.patch)
Fix inclusion of <sys/endian.h>
This is a GitHub Issue
repo:espeak-ng
owner:espeak-ng
Title : Fix inclusion of <sys/endian.h>
Issue date:

--- start body ---
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](https://github.com/espeak-ng/espeak-ng/files/14552378/spect.c.patch)
--- end body ---

None