Searched hist:c6f676d1d459fc5e2dc543a116c740f29c3bba8e (Results 1 – 2 of 2) sorted by relevance
/openbmc/libmctp/ |
H A D | serial.c | diff c6f676d1d459fc5e2dc543a116c740f29c3bba8e Wed Dec 18 19:24:06 CST 2019 Jeremy Kerr <jk@ozlabs.org> serial,astlpc: only include unistd.h if we're using file IO
We currently include unistd.h for all astlpc.c and serial.c builds, but we're only using it for read() & write().
This change moves the unistd include (which may not be available on all platforms) to within the HAVE_FILEIO conditional.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reported-by: Jet Li <Jet.Li@ibm.com> Change-Id: I7aaf46094f94269c681afc41a3092708c5137688
|
H A D | astlpc.c | diff c6f676d1d459fc5e2dc543a116c740f29c3bba8e Wed Dec 18 19:24:06 CST 2019 Jeremy Kerr <jk@ozlabs.org> serial,astlpc: only include unistd.h if we're using file IO
We currently include unistd.h for all astlpc.c and serial.c builds, but we're only using it for read() & write().
This change moves the unistd include (which may not be available on all platforms) to within the HAVE_FILEIO conditional.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reported-by: Jet Li <Jet.Li@ibm.com> Change-Id: I7aaf46094f94269c681afc41a3092708c5137688
|