trinity: undefined UIO_MAXIOV need sys/io.h
authorMatt Weber <matthew.weber@rockwellcollins.com>
Mon, 2 Oct 2017 21:13:05 +0000 (16:13 -0500)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 6 Oct 2017 17:23:35 +0000 (19:23 +0200)
commitda34a889d218ba5722774a769842ed08a64279ae
tree237dc061d4d3ea56af1674376f791deeaf1536a3
parent022d8df1b5e2c5daf3b5b6d0ed8f740164d3be81
trinity: undefined UIO_MAXIOV need sys/io.h

This upstream patch fixes the build error produced by building for
powerpc 32bit after the glibc bump to 2.26 with the following internal
toolchain config.

gcc5.4.0
glibc2.26
bin2.28.1
linux4.1.43

Failure log:
  CC net/proto-ipv4.o
net/proto-ipv4.c: In function ‘ip_setsockopt’:
net/proto-ipv4.c:231:49: error: ‘UIO_MAXIOV’ undeclared (first use in this function); did you mean ‘_IO_MAGIC’?
   so->optlen = rnd() % sizeof(unsigned long)*(2*UIO_MAXIOV+512);
                                                 ^~~~~~~~~~
                                                 _IO_MAGIC

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[Arnout: add Matthew's Sob to the patch]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/trinity/0006-Include-sys-io.h-for-UIO_MAXIOV-symbol.patch [new file with mode: 0644]