List Info

Thread: FreeBSD does not have ENODATA




FreeBSD does not have ENODATA
user name
2006-10-24 13:53:35
Hello.

The new libjack/midiport.c code does not compile on FreeBSD.
FreeBSD
does not have ENODATA (I don't think this error code is very
portable).

This is an unpleasant hack:

+/* FreeBSD (at least) does not have ENODATA */
+#ifndef ENODATA
+#define ENODATA (ELAST + 1)
+#endif
+
 typedef struct _jack_midi_port_info_private {
        jack_midi_port_info_t info;
        jack_nframes_t        last_write_loc; /**< Used
for both
writing and mixdown */

Hopefully you lot will come up with something nicer (perhaps
not using
ENODATA)...

MC

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
FreeBSD does not have ENODATA
user name
2006-10-24 23:01:27
On 10/24/06, mal content <artifact.onegooglemail.com> wrote:
> Hello.
>
> The new libjack/midiport.c code does not compile on
FreeBSD. FreeBSD
> does not have ENODATA (I don't think this error code is
very portable).
>
> This is an unpleasant hack:
>
> +/* FreeBSD (at least) does not have ENODATA */
> +#ifndef ENODATA
> +#define ENODATA (ELAST + 1)
> +#endif
> +
>  typedef struct _jack_midi_port_info_private {
>         jack_midi_port_info_t info;
>         jack_nframes_t        last_write_loc; /**<
Used for both
> writing and mixdown */
>
> Hopefully you lot will come up with something nicer
(perhaps not using
> ENODATA)...

That would seem best.  

Thanks for the report.
-- 
 joq

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
FreeBSD does not have ENODATA
user name
2006-10-25 00:22:22
On 25/10/06, Jack O'Quin <jack.oquingmail.com> wrote:
> On 10/24/06, mal content <artifact.onegooglemail.com> wrote:
> > Hello.
> >
> > The new libjack/midiport.c code does not compile
on FreeBSD. FreeBSD
> > does not have ENODATA (I don't think this error
code is very portable).
> >
> > This is an unpleasant hack:
> >
> > +/* FreeBSD (at least) does not have ENODATA */
> > +#ifndef ENODATA
> > +#define ENODATA (ELAST + 1)
> > +#endif
> > +
> >  typedef struct _jack_midi_port_info_private {
> >         jack_midi_port_info_t info;
> >         jack_nframes_t        last_write_loc;
/**< Used for both
> > writing and mixdown */
> >
> > Hopefully you lot will come up with something
nicer (perhaps not using
> > ENODATA)...
>
> That would seem best.  
>
> Thanks for the report.

I received an idea from someone at FreeBSD earlier: ENOMSG.

Apparently this is more portable.

cheers,
MC

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )