diff options
| author | Paul Eggert | 2011-08-31 15:18:16 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-31 15:18:16 -0700 |
| commit | 55e5faa18952a5608cf653f8fd268a7645a2f876 (patch) | |
| tree | 5056032a9e9270cb79639f2e1fa515d0bbde8d8b /nt | |
| parent | e91caa6011949f45790cd131883b2b3b26d6a0a2 (diff) | |
| download | emacs-55e5faa18952a5608cf653f8fd268a7645a2f876.tar.gz emacs-55e5faa18952a5608cf653f8fd268a7645a2f876.zip | |
Add a stub for snprintf, for ancient hosts lacking it.
* configure.in (snprintf): New check.
* nt/config.nt (HAVE_SNPRINTF): New macro.
* src/sysdep.c (snprintf) [! HAVE_SNPRINTF]: New function.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index edbd1a1c1d4..f3c57c7e0d0 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-08-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * config.nt (HAVE_SNPRINTF): New macro. | ||
| 4 | |||
| 1 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Assume freestanding C89 headers, string.h, stdlib.h. | 7 | Assume freestanding C89 headers, string.h, stdlib.h. |
diff --git a/nt/config.nt b/nt/config.nt index 3436bc989e0..ae3807538c0 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -240,6 +240,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 240 | #define HAVE_SETSOCKOPT 1 | 240 | #define HAVE_SETSOCKOPT 1 |
| 241 | #define HAVE_GETSOCKNAME 1 | 241 | #define HAVE_GETSOCKNAME 1 |
| 242 | #define HAVE_GETPEERNAME 1 | 242 | #define HAVE_GETPEERNAME 1 |
| 243 | #define HAVE_SNPRINTF 1 | ||
| 243 | #define HAVE_LANGINFO_CODESET 1 | 244 | #define HAVE_LANGINFO_CODESET 1 |
| 244 | /* Local (unix) sockets are not supported. */ | 245 | /* Local (unix) sockets are not supported. */ |
| 245 | #undef HAVE_SYS_UN_H | 246 | #undef HAVE_SYS_UN_H |