Package: eegdev
Version: 0.2-3
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


After applying patch form #720833,
in an attempt to build package eegdev on mips/mipsel and amd64, build failed 
with an error:

> In file included from library-usage/eegdev_acq.c:23:0:
> ../../lib/unistd.h:121:3: error: #error "Please include config.h first."
>   #error "Please include config.h first."


The reason for that is a migration to the newer version of gnulib,
from 20130805+stable-1 to 20120404+stable-1.

To avoid this problem it is needed to include "config.h" before 
including system headers (due to changes in gnulib).


Patch that contains these changes is attached.
Could you consider applying this patch?


Thanks,
Dejan
--- a/doc/examples/library-usage/acquisition.c
+++ b/doc/examples/library-usage/acquisition.c
@@ -15,6 +15,9 @@
     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>
--- a/doc/examples/library-usage/eegdev_acq.c
+++ b/doc/examples/library-usage/eegdev_acq.c
@@ -15,6 +15,9 @@
     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdio.h>
--- a/doc/examples/library-usage/recinxdf.c
+++ b/doc/examples/library-usage/recinxdf.c
@@ -15,6 +15,9 @@
     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
--- a/tests/sysbiosemi.c
+++ b/tests/sysbiosemi.c
@@ -17,6 +17,9 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 //#include <sys/time.h>
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <time.h>
 #include <string.h>
 #include <stdlib.h>
--- a/tests/syseegfile.c
+++ b/tests/syseegfile.c
@@ -17,6 +17,9 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 //#include <sys/time.h>
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <time.h>
 #include <string.h>
 #include <stdlib.h>
--- a/tests/systobiia.c
+++ b/tests/systobiia.c
@@ -16,6 +16,9 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 //#include <sys/time.h>
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <time.h>
 #include <string.h>
 #include <stdlib.h>

Reply via email to