Re: [Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-18 Thread Wei Liu
On Tue, Apr 18, 2017 at 11:11:20AM +0100, Christian Lindig wrote: > > > On 18. Apr 2017, at 10:59, Wei Liu wrote: > > > > Forgive my ignorance for the Ocaml ecosystem, but I can't seem to find a > > way to conditionally compile ocaml source code easily. > > > > Presumably you mean "Determine th

Re: [Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-18 Thread Christian Lindig
> On 18. Apr 2017, at 10:59, Wei Liu wrote: > > Forgive my ignorance for the Ocaml ecosystem, but I can't seem to find a > way to conditionally compile ocaml source code easily. > > Presumably you mean "Determine the path at *configure* time"? Even if > we make those configurable, there should

Re: [Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-18 Thread Christian Lindig
> On 18. Apr 2017, at 10:59, Wei Liu wrote: > > Forgive my ignorance for the Ocaml ecosystem, but I can't seem to find a > way to conditionally compile ocaml source code easily. > > Presumably you mean "Determine the path at *configure* time"? Even if > we make those configurable, there should

Re: [Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-18 Thread Wei Liu
On Tue, Apr 18, 2017 at 10:46:15AM +0100, Christian Lindig wrote: > > > On 14. Apr 2017, at 11:20, Wei Liu wrote: > > > > Unfortunately there is an easy way to determine system name in the standard > > library so I wrote a wrapper for uname syscall. > > I think there are two solutions to using

Re: [Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-18 Thread Christian Lindig
> On 14. Apr 2017, at 11:20, Wei Liu wrote: > > Unfortunately there is an easy way to determine system name in the standard > library so I wrote a wrapper for uname syscall. I think there are two solutions to using the correct path: (1) Determine the path at compile time and use the mechanism

[Xen-devel] [PATCH for-4.9 0/2] oxenstored: make it work on FreeBSD

2017-04-14 Thread Wei Liu
I managed to remove almost all Linux-ism in my previous work to make all paths configurable. The last bits missing are the two device node paths. Unfortunately there is an easy way to determine system name in the standard library so I wrote a wrapper for uname syscall. I think this is a good can