git: Add <alloca.h> header.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Apr 7 12:07:18 PDT 2019


commit b86ad3f348b345c101fe83acc61fb5381a85354f
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Mon Apr 1 20:50:01 2019 +0300

    Add <alloca.h> header.
    
    There are quite a few ports that often assume <alloca.h> availability.
    This addition should ease up porting efforts. It is reasonable to try
    including different header than <stdlib.h> for alloca() definition:
     * alloca() is not implemented in libc (it is implemented by compiler);
     * <stdlib.h> will not provide alloca() macro for !__BSD_VISIBLE case;
     * including <stdlib.h> might bring in additional unwanted namespace
       pollution when implementing certain low-level features.

Summary of changes:
 include/Makefile                                   |  2 +-
 .../tcplay_api_internal.h => include/alloca.h      | 42 ++++++++++------------
 2 files changed, 20 insertions(+), 24 deletions(-)
 copy lib/libtcplay/tcplay_api_internal.h => include/alloca.h (70%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b86ad3f348b345c101fe83acc61fb5381a85354f


-- 
DragonFly BSD source repository



More information about the Commits mailing list