Control: tags -1 patch

On Fri, 19 Jan 2018 20:18:04 +0200 Adrian Bunk <b...@debian.org> wrote:
> Source: cctools
> ...
> mpi_queue_worker.c:551:23: error: array type has incomplete element type 
> 'struct option'
>   static struct option long_options[] = {
> mpi_queue_worker.c:552:13: error: 'required_argument' undeclared (first use 
> in this function)
>    {"debug", required_argument, 0, 'd'},
> mpi_queue_worker.c:562:13: warning: implicit declaration of function 
> 'getopt_long'; did you mean 'getpayload'? [-Wimplicit-function-declaration]

The attached patch seems to resolve this FTBFS by adding #include "getopt.h".

Cheers,
Juhani
Description: Add missing includes to fix FTBFS with glibc 2.26
Author: Juhani Numminen <juhaninummin...@gmail.com>
Bug-Debian: https://bugs.debian.org/887763
Last-Update: 2018-01-26

--- a/work_queue/src/mpi_queue_worker.c
+++ b/work_queue/src/mpi_queue_worker.c
@@ -14,6 +14,7 @@
 #include "itable.h"
 #include "debug.h"
 #include "create_dir.h"
+#include "getopt.h"
 
 #include <stdio.h>
 #include <time.h>
--- a/parrot/src/parrot_cp.c
+++ b/parrot/src/parrot_cp.c
@@ -7,6 +7,7 @@
 #include "pfs_types.h"
 #include "full_io.h"
 #include "parrot_client.h"
+#include "getopt.h"
 
 #include <stdio.h>
 #include <syscall.h>

Reply via email to