Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv10969

Modified Files:
        copy_string.c 
Added Files:
        compiler.h 
Log Message:
make copy_string able to build on older compilers (bug #4714)


--- NEW FILE: compiler.h ---
/*
 * Asterisk -- A telephony toolkit for Linux.
 *
 * Compiler-specific macros and other items
 *
 * Copyright (C) 2005, Digium, Inc.
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License
 */

#ifndef _ASTERISK_COMPILER_H
#define _ASTERISK_COMPILER_H

#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
#define __builtin_expect(exp, c) (exp)
#endif

#endif /* _ASTERISK_COMPILER_H */

Index: copy_string.c
===================================================================
RCS file: /usr/cvsroot/libpri/copy_string.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- copy_string.c       21 Jun 2005 22:47:39 -0000      1.1
+++ copy_string.c       15 Jul 2005 16:29:20 -0000      1.2
@@ -26,6 +26,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 
+#include "compiler.h"
 #include "libpri.h"
 #include "pri_internal.h"
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to