I am trying to compile a dahdi module from checkout:
svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1
with ubuntu 3.5.0-17-generic and gcc 4.7.2
Error on compile is:
error: ‘NULL’ undeclared (first use in this function)
This is identical to the error reported in this patch fix:
How would I apply the patch included in the above url?
[eric@pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch