[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a better way.




There's a better way to do this, I know.  Hints?

#ifdef __OpenBSD__
  rv = DYN_GetAddress( vHandle, &vFunction, "_IFD_Set_Protocol_Parameters" );
#else
  rv = DYN_GetAddress( vHandle, &vFunction, "IFD_Set_Protocol_Parameters" );
#endif 

DYN_GetAddress is a wrapper around dlopen().

I tried the former on linux, and it dies, and the latter on BSD dies.

If I have to use a #include, is there a preferrable way to using
the full OS name, too?

thx for any help you can give,
Evan