smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

windows meson: pid_t type redefined #23

Open williamtu opened 3 years ago

williamtu commented 3 years ago

FAILED: lib/libopenvswitch.a.p/bundle.c.obj "clang" "-Ilib\libopenvswitch.a.p" "-Ilib" "-I..\lib" "-I." "-I.." "-Iinclude\openflow" "-I..\include\openflow" "-Iinclude\openvswitch" "-I..\include\openvswitch" " -I..\include\windows" "-Iinclude" "-I..\include" "-I..\datapath-windows\include" "-IC:\PTHREADS-BUILT\include" "-Xclang" "-fcolor-diagnostics" "-pipe" "-D_FILE_OFFS ET_BITS=64" "-Wall" "-Winvalid-pch" "-g" -MD -MQ lib/libopenvswitch.a.p/bundle.c.obj -MF "lib\libopenvswitch.a.p\bundle.c.obj.d" -o lib/libopenvswitch.a.p/bundle.c. obj "-c" ../lib/bundle.c In file included from ../lib/bundle.c:27: In file included from ..\lib/nx-match.h:24: In file included from ..\lib/flow.h:25: In file included from ..\lib/bitmap.h:22: ..\lib/util.h:81:17: warning: unused variable 'addr' [-Wunused-variable] const char addr = (const char )start; ^ In file included from ../lib/bundle.c:35: In file included from ..\include\openvswitch/vlog.h:35: In file included from ..\include\openvswitch/thread.h:20: In file included from C:\PTHREADS-BUILT\include\pthread.h:178: C:\PTHREADS-BUILT\include\sched.h:56:17: error: typedef redefinition with different types ('int' vs 'long long') typedef int pid_t; ^ ../include/windows/windefs.h:41:17: note: previous definition is here typedef __int64 pid_t; ^ 1 warning and 1 error generated.