[asterisk-bugs] [Asterisk 0017975]: strndup doesn't exist on mac os/X

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 9 15:10:24 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17975 
====================================================================== 
Reported By:                oej
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17975
Category:                   Core/Portability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 285741 
Request Review:              
====================================================================== 
Date Submitted:             2010-09-09 15:05 CDT
Last Modified:              2010-09-09 15:10 CDT
====================================================================== 
Summary:                    strndup doesn't exist on mac os/X
Description: 
   [LD] res_phoneprov.o -> res_phoneprov.so
   [CC] res_realtime.c -> res_realtime.o
In file included from
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/select.h:28,
                 from
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/poll-compat.h:82,
                 from
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/compat.h:73,
                 from
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk.h:27,
                 from res_realtime.c:30:
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/utils.h:
In function '_ast_strndup':
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/utils.h:559:
warning: implicit declaration of function 'strndup'
/usr/local/src/asterisk.svn/set-tonezone-trunk/include/asterisk/utils.h:559:
warning: incompatible implicit declaration of built-in function 'strndup
====================================================================== 

---------------------------------------------------------------------- 
 (0126788) oej (manager) - 2010-09-09 15:10
 https://issues.asterisk.org/view.php?id=17975#c126788 
---------------------------------------------------------------------- 
If you google on "os/x strndup" you'll get many examples of source code
that implements strndup for os/x 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-09 15:10 oej            Note Added: 0126788                          
======================================================================




More information about the asterisk-bugs mailing list