[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
conditionally applying a patch
Is there a method to apply a patch conditionally, say, depending on an option?
I would like to add an option to www/lighttpd to make the use of TCP Accept Filters optional. There's no configure switch for that, it's simply governed by #ifdef SO_ACCEPTFILTER.
I'm not keen to add an autohell option for it myself.
I could change that to #ifdef SO_ACCEPTFILTER && USE_ACCEPTFILTER and set CFLAGS conditionally.
But I could also simply (conditionally) patch away that code.
Is there Prior Art for something like this?
Main Index |
Thread Index |