[gtk+] broadway: remove unused libcrypt



commit ff0c470e344daf82480f3a16bc91491d5ae43cd6
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 12 00:10:03 2014 -0400

    broadway: remove unused libcrypt
    
    eb1ab0dac2f3d7a05cfe8b87e83b363d39279a38 removed support for authentication
    based on crypt()-hashed passwords but it didn't remove the header.
    
    Finish up with the removal.
    
    This allows the broadway backend to build on FreeBSD (which has no
    crypt.h).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726149

 gdk/broadway/Makefile.am       |    4 ++--
 gdk/broadway/broadway-server.c |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk/broadway/Makefile.am b/gdk/broadway/Makefile.am
index bdca051..af1fa97 100644
--- a/gdk/broadway/Makefile.am
+++ b/gdk/broadway/Makefile.am
@@ -89,9 +89,9 @@ broadwayd_SOURCES = \
        broadway-output.c
 
 if OS_WIN32
-broadwayd_LDADD = $(GDK_DEP_LIBS) -lcrypt -lws2_32
+broadwayd_LDADD = $(GDK_DEP_LIBS) -lws2_32
 else
-broadwayd_LDADD = $(GDK_DEP_LIBS) -lrt -lcrypt
+broadwayd_LDADD = $(GDK_DEP_LIBS) -lrt
 endif
 
 MAINTAINERCLEANFILES = $(broadway_built_sources)
diff --git a/gdk/broadway/broadway-server.c b/gdk/broadway/broadway-server.c
index fb2741e..fc97bf4 100644
--- a/gdk/broadway/broadway-server.c
+++ b/gdk/broadway/broadway-server.c
@@ -4,8 +4,6 @@
 
 #include "broadway-output.h"
 
-#define _XOPEN_SOURCE /* for crypt */
-
 #include <glib.h>
 #include <glib/gprintf.h>
 #include "gdktypes.h"
@@ -18,7 +16,6 @@
 #elif defined (G_OS_WIN32)
 #include <io.h>
 #endif
-#include <crypt.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif


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