mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix missing include in libmv_bundle_adjuster on OSX.
- If compiling without glog (but with gflags) on OSX, unistd.h is required for close() et al, when using glog this was pulled in indirectly. Change-Id: I8f0807d98479e386921fb48da30683d027d4bc61
This commit is contained in:
committed by
Sameer Agarwal
parent
882aea18ae
commit
9631c69354
@@ -99,7 +99,8 @@
|
|||||||
# define close _close
|
# define close _close
|
||||||
typedef unsigned __int32 uint32_t;
|
typedef unsigned __int32 uint32_t;
|
||||||
#else
|
#else
|
||||||
# include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
// O_BINARY is not defined on unix like platforms, as there is no
|
// O_BINARY is not defined on unix like platforms, as there is no
|
||||||
// difference between binary and text files.
|
// difference between binary and text files.
|
||||||
|
|||||||
Reference in New Issue
Block a user