Correct test for enable_cdda to accept either curses.h *or* ncurses.h

Add <strings.h> in more places that use bzero. Checks suggested by Blake Jones.

Add preprocessor symbol CDIO_CONFIG_H to <cdio_config.h>
This commit is contained in:
R. Bernstein
2011-10-20 18:24:10 -04:00
parent 96343e07bf
commit b7203f5d6b
5 changed files with 21 additions and 9 deletions

View File

@@ -1,6 +1,4 @@
/*
$Id: utf8.c,v 1.5 2008/04/22 15:29:12 karl Exp $
Copyright (C) 2006, 2008 Burkhard Plaum <plaum@ipf.uni-stuttgart.de>
This program is free software: you can redistribute it and/or modify
@@ -128,7 +126,7 @@ do_convert(iconv_t cd, char * src, int src_len,
while(1)
{
if(iconv(cd, &inbuf, &inbytesleft,
if(iconv(cd, (ICONV_CONST char **)&inbuf, &inbytesleft,
&outbuf, &outbytesleft) == (size_t)-1)
{
switch(errno)