File: compat-5.1.dpatch

package info (click to toggle)
lua-filesystem 1.2-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 136 kB
  • ctags: 89
  • sloc: ansic: 443; makefile: 27; sh: 14
file content (27 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh /usr/share/dpatch/dpatch-run
## compat-5.1.dpatch by Enrico Tassi <gareuselesinge@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad trunk~/src/lfs.c trunk/src/lfs.c
--- trunk~/src/lfs.c	2006-03-14 17:18:30.000000000 +0100
+++ trunk/src/lfs.c	2006-09-03 10:07:12.000000000 +0200
@@ -39,7 +39,6 @@
 #include "lua.h"
 #include "lauxlib.h"
 #include "lualib.h"
-#include "compat-5.1.h"
 
 #include "lfs.h"
 
@@ -582,7 +581,7 @@
 
 int luaopen_lfs (lua_State *L) {
 	dir_create_meta (L);
-	luaL_openlib (L, "lfs", fslib, 0);
+	luaL_register (L, "lfs", fslib);
 	set_info (L);
 	return 1;
 }