New MSHV hamradio soft

It would make much more sense to patch the upstream source, e.g. like this:
Code:
#ifdef __FreeBSD__
#  ifndef B576000
#    define B576000 576000
#  endif
#  ifndef B1152000
#    define B1152000 1152000U
#  endif
#endif

Or, if you're writing a port, something in its Makefile like CFLAGS+= -DB576000=576000 -DB1152000=152000U would be even simpler...

That is, unless you can show which "standard" has these speeds and why it should be defined in this header...

On FreeBSD, you don't really need any of these defines, as speeds are just given as actual numbers. This is different from e.g. Linux which uses some "flags enum" style or similar (which might not be the greatest idea in terms of flexibility and extensibility...)
 
Back
Top