| 1 | Authorscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/patches/`300-freebsd.patch`#Author.: Nicholas Bamber <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 | Descriptionscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/patches/`300-freebsd.patch`#Description.: attempt to port to Debian/kFreeBSD |
| 3 | This patch attempts to get the package building on |
| 4 | FreeBSD. So far it adds in '#include' |
| 5 | statements that appear to be missing. However this |
| 6 | comes unstuck when we hit the RTF_WASCLONED symbol. |
| 7 | This would be defined in net/route.h but seems to |
| 8 | have been removed. It would be nice if upstream |
| 9 | or someone with more knowledge of FreeBSD networking |
| 10 | would have a look at this. However for the moment |
| 11 | the patch adds this #define back in. This gets it |
| 12 | to compile but is highly suspicious. |
| 13 | Last-Updatescip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/patches/`300-freebsd.patch`#Last-Update.: 2012-02-10 |
| 14 | Forwardedscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/patches/`300-freebsd.patch`#Forwarded.: yes, sent private email to upstream authors |
| 15 | --- a/protolib/include/protoFile.hscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/upstream/`protolib/include/protoFile.h`: |
| 16 | +++ b/protolib/include/protoFile.hscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/upstream/`protolib/include/protoFile.h`: |
| 17 | @@ -21,6 +21,10 @@ |
| 18 | #include <sys/stat.h> |
| 19 | #endif // if/else _WIN32_WCE |
| 20 | |
| 21 | +#ifndef _SYS_FILE_H |
| 22 | +#include <sys/file.h> |
| 23 | +#endif |
| 24 | + |
| 25 | #include <ctype.h> // for "isprint()" |
| 26 | // required protolib files |
| 27 | #include "protoChannel.h" |
| 28 | --- a/protolib/src/bsd/bsdRouteMgr.cppscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/upstream/`protolib/src/bsd/bsdRouteMgr.cpp`: |
| 29 | +++ b/protolib/src/bsd/bsdRouteMgr.cppscip-debian debian mgen 5.02.c+really5.1.1+dfsg-1 mgen/upstream/`protolib/src/bsd/bsdRouteMgr.cpp`: |
| 30 | @@ -15,6 +15,10 @@ |
| 31 | #include <net/route.h> |
| 32 | #include <net/if_dl.h> |
| 33 | |
| 34 | +#ifndef RTF_WASCLONED |
| 35 | +#define RTF_WASCLONED 0x20000 |
| 36 | +#endif |
| 37 | + |
| 38 | class BsdRouteMgr : public ProtoRouteMgr |
| 39 | { |
| 40 | public: |