Issue 18459: readline: libedit support on non-apple platforms (original) (raw)
Modules/readline.c contains some code that improves interop with the readline emulation in libedit. That interop code is currently guarded by '#ifdef APPLE' preprocessor tests.
This should be replaced by '#if HAVE_LIBEDIT' to make it possible to use the same interop code on other platforms with libedit (such as BSD systems).
A patch should have two parts:
Detect in either configure or setup.py if libedit's readline emulation will/should be used.
Change the APPLE guards by HAVE_LIBEDIT guards.