summaryrefslogtreecommitdiff
path: root/datapath-windows
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2019-04-23 16:42:32 -0700
committerBen Pfaff <blp@ovn.org>2019-04-24 08:37:08 -0700
commit0cdd5b13de91b989dc92246e20ee6d528417df97 (patch)
tree90658b62a4d3eaa05641fc7ac1c9bb86ea409f78 /datapath-windows
parent46124c18b093bee851f30c9fc938c1ff8c2c75ee (diff)
downloadopenvswitch-0cdd5b13de91b989dc92246e20ee6d528417df97.tar.gz
sparse: Configure target operating system and fix fallout.
cgcc, the "sparse" wrapper that OVS uses, can be told the host architecture or the host OS or both. Until now, OVS has told it the host architecture because it is fairly common that it doesn't guess it automatically. Until now, OS has not told it the host OS, assuming that it would get it right. However, it doesn't--if you tell it the host OS or the host architecture, it doesn't really have a default for the other. This means that on Linux (presumably the only OS where sparse works properly for OVS), it was not defining __linux__, which caused some weird behavior. This commit adds a flag to the cgcc invocation to make it define __linux__ on Linux, and it fixes some errors that this would otherwise cause. Acked-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath-windows')
0 files changed, 0 insertions, 0 deletions