lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Fri, Dec 10, 2010 at 00:43, Zed Shaw <zed.shaw@gmail.com> wrote:
> >
> > * Ditch libuuid and just rolled my own psuedo uuid for sessions (which
> > probably ain't secure but oh well).
> 
> 
> I'm not in web dev at the moment, but I'm still keeping an eye on this...
> Why did you remove libuuid? Because of OS X? If it is the case, this could
> be helpful:
> 
> http://www.mail-archive.com/programming@jsoftware.com/msg05886.html

Nice tip. I can confirm that my luuid does not build out-of-the-box in
Mac OS X 10.6.5 but it does when the patch below is applied. Apparently,
the uuid functions are in libc and uuid_time does not exist.

diff uuid/Makefile uuid,new/Makefile
39c39
< 	$(MAKESO) -o $@ $(OBJS) -luuid
---
> 	$(MAKESO) -o $@ $(OBJS) #-luuid

diff uuid/luuid.c uuid,new/luuid.c
18d17
< #define	uuid_time(c,p)		(-1)
19a19
> #define	uuid_time(c,p)		(-1)