Codebase list kbuild / ff3d2e2
New upstream version 0.1.9998svn3293+dfsg Gianfranco Costamagna 5 years ago
3 changed file(s) with 14 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
2828 * SUCH DAMAGE.
2929 */
3030
31 #ifdef __sun__
32 # define _POSIX_C_SOURCE 199506L /* for dirfd() */
33 # define __EXTENSIONS__ 1 /* for u_short and friends */
34 #endif
3135 #if HAVE_NBTOOL_CONFIG_H
3236 #include "nbtool_config.h"
3337 #endif
6367
6468 #ifdef __sun__
6569 # include "solfakes.h"
66 # ifndef __XOPEN_OR_POSIX
67 # define dirfd(dir) ((dir)->dd_fd)
68 #else
69 # define dirfd(dir) ((dir)->d_fd)
70 #endif
70 # define dirfd(dir) ((dir)->d_fd)
7171 #endif
7272 #ifdef _MSC_VER
7373 # include "mscfakes.h"
0 /* $Id: kmkbuiltin.c 3291 2019-01-08 15:06:54Z bird $ */
0 /* $Id: kmkbuiltin.c 3293 2019-01-08 21:13:50Z bird $ */
11 /** @file
22 * kMk Builtin command execution.
33 */
297297 {
298298 struct KMKBUILTINENTRY const *pEntry;
299299 size_t cchAndStart;
300 #if K_ENDIAN == K_ENDIAN_BIG
301 size_t cch;
302 #endif
300303 int cLeft;
301304
302305 pszCmd += sizeof(s_szPrefix) - 1;
309312 #endif
310313 cchAndStart = strlen(pszCmd);
311314 #if K_ENDIAN == K_ENDIAN_BIG
315 cch = cchAndStart;
312316 cchAndStart <<= K_ARCH_BITS - 8;
313 switch (cchAndStart)
317 switch (cch)
314318 {
315319 default: /* fall thru */
316320 # if K_ARCH_BITS >= 64
0 /* $Id: kDefs.h 111 2018-03-16 12:46:58Z bird $ */
0 /* $Id: kDefs.h 116 2019-01-08 19:23:20Z bird $ */
11 /** @file
22 * kTypes - Defines and Macros.
33 */
337337 # define K_ENDIAN K_ARCH_ENDIAN
338338 # elif defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && defined(__ORDER_BIG_ENDIAN__)
339339 # if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
340 # define K_ENDIAN K_ARCH_LITTLE
340 # define K_ENDIAN K_ENDIAN_LITTLE
341341 # elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
342 # define K_ENDIAN K_ARCH_BIG
342 # define K_ENDIAN K_ENDIAN_BIG
343343 # else
344344 # error "Port Me or define K_ENDIAN."
345345 # endif