Differences From Artifact [2f3715d5a6]:
- File src/config.h — part of check-in [815b4fc493] at 2020-12-04 18:35:21 on branch trunk — The variadic function builtin_fossil_js_bundle_or() was using 0 as a sentinel to detect end-of-list, but that isn't equivalent to NULL in a list of pointed-to objects in all C compilers, on all systems. Using a GCC/Clang function attribute to force a warning when 0 is passed instead of NULL, then fixed all resulting warnings. This fixes the SEGV reported in [forum:/forumpost/5feca9c36a|forum post 5feca9c36a] on Mac OS X 10.11 with Clang from Xcode 7. Later versions of Clang on macOS don't have this problem, but it's still UB, so fixing it may solve some pain for us later on. (user: wyoung size: 8060) [more...]
To Artifact [a4bd538623]:
- File src/config.h — part of check-in [cb34f1a8ac] at 2021-06-30 19:14:57 on branch remote-ui — Initial changes to support HOST: prefixes on the REPOSITORY argument of the "fossil ui" command. (user: drh size: 8172) [more...]
| ︙ | |||
64 65 66 67 68 69 70 71 72 73 74 75 76 77 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | + + + + + + |
#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
# if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
typedef int socklen_t;
# endif
# ifndef _WIN32
# define _WIN32
# endif
# include <io.h>
# include <fcntl.h>
# undef popen
# define popen _popen
# undef pclose
# define pclose _pclose
#else
# include <sys/types.h>
# include <signal.h>
# include <pwd.h>
#endif
/*
|
| ︙ |