Christian Grothoff <[email protected]> writes: > but in this case there seems to be a better alternative: use > a C constructor to call GNUNET_OS_init(): > > /** > * Initialize i18n > */ > void __attribute__ ((constructor)) i18n_init () { > GNUNET_OS_init (...); > } > > Constructors run before main(), so that should fix your problem nicely.
I wasn't aware of this feature. Would it be OK to add a constructor calling `GNUNET_OS_init' in the gnunet-ext service? It seems to be something that a reference implementation/template might want to show. Thanks, A.V. _______________________________________________ GNUnet-developers mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnunet-developers
