[MacPorts] #69890: legacysupport: add SLIST_REMOVE_AFTER

MacPorts noreply at macports.org
Wed May 1 21:03:52 UTC 2024


#69890: legacysupport: add SLIST_REMOVE_AFTER
--------------------------+----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  legacy-support
--------------------------+----------------------------
 Could we add support for `SLIST_REMOVE_AFTER`, which is missing from
 `sys/queue.h` in some older OS?

 Perhaps, from Apple code:
 {{{
 #ifndef SLIST_REMOVE_AFTER
 #define SLIST_REMOVE_AFTER(elm, field) do {             \
         SLIST_NEXT(elm, field) =                        \
             SLIST_NEXT(SLIST_NEXT(elm, field), field);  \
 } while (0)
 #endif
 }}}
 https://opensource.apple.com/source/Libc/Libc-997.1.1/gen/FreeBSD/popen.c.auto.html

-- 
Ticket URL: <https://trac.macports.org/ticket/69890>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list