Codes that uses #include "vswitch-idl.h" can get an older version of this
header, because this header file moved from vswitchd/ to lib/ and the
older generated file might still be present.
This helps out two ways:
* "make clean" will delete the generated files from their old
locations.
* Use #include "lib/vswitch-idl.h" to explicitly avoid including the
files from their old locations.
Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
#include "stream-ssl.h"
#include "sset.h"
#include "svec.h"
-#include "vswitch-idl.h"
+#include "lib/vswitch-idl.h"
#include "table.h"
#include "timeval.h"
#include "util.h"
exit 1; \
fi
CLEANFILES += vswitchd/vswitch.ovsschema.stamp
+
+# Clean up generated files from older OVS versions. (This is important so that
+# #include "vswitch-idl.h" doesn't get the wrong copy.)
+CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h
#include "util.h"
#include "unixctl.h"
#include "vlandev.h"
-#include "vswitch-idl.h"
+#include "lib/vswitch-idl.h"
#include "xenserver.h"
#include "vlog.h"
#include "sflow_api.h"
#include "util.h"
#include "vconn.h"
#include "vlog.h"
-#include "vswitch-idl.h"
+#include "lib/vswitch-idl.h"
VLOG_DEFINE_THIS_MODULE(vswitchd);