Guest User

minidlna patch

a guest
Nov 20th, 2012
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.19 KB | None | 0 0
  1. diff -Naur minidlna-1.0.25/Makefile minidlna-mod/Makefile
  2. --- minidlna-1.0.25/Makefile    2012-01-17 16:49:01.000000000 -0600
  3. +++ minidlna-mod/Makefile   2012-11-18 16:52:08.000000000 -0600
  4. @@ -10,12 +10,12 @@
  5.  # or :
  6.  # $ make install
  7.  #
  8. -#CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG
  9. +CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG
  10.  #CFLAGS = -Wall -g -Os -D_GNU_SOURCE
  11. -CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
  12. -    -I/usr/include/ffmpeg \
  13. -    -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
  14. -    -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat
  15. +#CFLAGS = -Wall -g -D_GNU_SOURCE  \
  16. +#   -I/usr/include/sys -I/usr/include/ffmpeg \
  17. +#   -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
  18. +#   -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat
  19.  #STATIC_LINKING: CFLAGS += -DSTATIC
  20.  #STATIC_LINKING: LDFLAGS = -static
  21.  CC = gcc
  22. @@ -45,7 +45,6 @@
  23.  EXECUTABLES = minidlna testupnpdescgen
  24.  
  25.  .PHONY:    all clean distclean install depend
  26. -
  27.  all:   $(EXECUTABLES)
  28.  
  29.  clean:
  30. diff -Naur minidlna-1.0.25/config.h minidlna-mod/config.h
  31. --- minidlna-1.0.25/config.h    1969-12-31 18:00:00.000000000 -0600
  32. +++ minidlna-mod/config.h   2012-11-18 16:22:37.000000000 -0600
  33. @@ -0,0 +1,40 @@
  34. +/* MiniDLNA Project
  35. + * http://sourceforge.net/projects/minidlna/
  36. + * (c) 2008-2009 Justin Maggard
  37. + * generated by ./genconfig.sh on Sun Nov 18 16:22:37 CST 2012 */
  38. +#ifndef __CONFIG_H__
  39. +#define __CONFIG_H__
  40. +
  41. +#define OS_NAME            "Linux"
  42. +#define OS_VERSION     "Linux/2.6.39.2"
  43. +#define OS_URL         "http://www.kernel.org/"
  44. +
  45. +/* full path of the file database */
  46. +#define DEFAULT_DB_PATH        "/tmp/minidlna"
  47. +
  48. +/* full path of the log directory */
  49. +#define DEFAULT_LOG_PATH   "/tmp/minidlna"
  50. +
  51. +/* Comment the following line to use home made daemonize() func instead
  52. + * of BSD daemon() */
  53. +#define USE_DAEMON
  54. +
  55. +/* Enable if the system inotify.h exists.  Otherwise our own inotify.h will be used. */
  56. +#define HAVE_INOTIFY_H
  57. +
  58. +/* Enable if the system iconv.h exists.  ID3 tag reading in various character sets will not work properly otherwise. */
  59. +#define HAVE_ICONV_H
  60. +
  61. +/* Enable if the system libintl.h exists for NLS support. */
  62. +#define ENABLE_NLS
  63. +
  64. +/* Enable NETGEAR-specific tweaks. */
  65. +/*#define NETGEAR*/
  66. +/* Enable ReadyNAS-specific tweaks. */
  67. +/*#define READYNAS*/
  68. +/* Compile in TiVo support. */
  69. +/*#define TIVO_SUPPORT*/
  70. +/* Enable PnPX support. */
  71. +#define PNPX 0
  72. +
  73. +#endif
  74. diff -Naur minidlna-1.0.25/metadata.c minidlna-mod/metadata.c
  75. --- minidlna-1.0.25/metadata.c  2012-06-29 16:11:29.000000000 -0500
  76. +++ minidlna-mod/metadata.c 2012-11-18 16:53:31.000000000 -0600
  77. @@ -30,9 +30,9 @@
  78.  #include "image_utils.h"
  79.  #include <jpeglib.h>
  80.  #include <setjmp.h>
  81. -#include <avutil.h>
  82. -#include <avcodec.h>
  83. -#include <avformat.h>
  84. +#include <libavutil/avutil.h>
  85. +#include <libavcodec/avcodec.h>
  86. +#include <libavformat/avformat.h>
  87.  #include "tagutils/tagutils.h"
  88.  
  89.  #include "upnpglobalvars.h"
  90. diff -Naur minidlna-1.0.25/minidlna.c minidlna-mod/minidlna.c
  91. --- minidlna-1.0.25/minidlna.c  2012-05-07 19:10:42.000000000 -0500
  92. +++ minidlna-mod/minidlna.c 2012-11-18 16:51:00.000000000 -0600
  93. @@ -46,6 +46,7 @@
  94.   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  95.   * POSSIBILITY OF SUCH DAMAGE.
  96.   */
  97. +#include <sys/time.h>
  98.  #include <stdlib.h>
  99.  #include <unistd.h>
  100.  #include <string.h>
  101. diff -Naur minidlna-1.0.25/minidlnatypes.h minidlna-mod/minidlnatypes.h
  102. --- minidlna-1.0.25/minidlnatypes.h 2012-05-31 13:37:39.000000000 -0500
  103. +++ minidlna-mod/minidlnatypes.h    2012-11-18 16:49:14.000000000 -0600
  104. @@ -29,6 +29,7 @@
  105.  #ifndef __MINIDLNATYPES_H__
  106.  #define __MINIDLNATYPES_H__
  107.  
  108. +#include <time.h>
  109.  #include "config.h"
  110.  #include <netinet/in.h>
  111.  
  112. diff -Naur minidlna-1.0.25/tagutils/tagutils-plist.c minidlna-mod/tagutils/tagutils-plist.c
  113. --- minidlna-1.0.25/tagutils/tagutils-plist.c   2012-01-17 16:54:47.000000000 -0600
  114. +++ minidlna-mod/tagutils/tagutils-plist.c  2012-11-18 16:54:43.000000000 -0600
  115. @@ -27,7 +27,6 @@
  116.  #include "misc.h"
  117.  #include "tagutils.h"
  118.  #include "textutils.h"
  119. -#include "log.h"
  120.  
  121.  
  122.  #define MAX_BUF 4096
Advertisement
Add Comment
Please, Sign In to add comment