From 86c45ba50dfb4c4749fa5eb40d9ca6e0aed82680 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Wed, 11 May 2016 20:17:54 +0200
Subject: [PATCH] google-talk-plugin: 5.4.2.0 -> 5.41.0.0

---
 .../mozilla-plugins/google-talk-plugin/default.nix         | 7 ++++---
 .../browsers/mozilla-plugins/google-talk-plugin/preload.c  | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix
index aed05f425030..88bdd08cbfe8 100644
--- a/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix
+++ b/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix
@@ -32,6 +32,7 @@ let
       xorg.libXfixes
       xorg.libXrender
       xorg.libXrandr
+      xorg.libXext
       stdenv.cc.cc
       alsaLib
       libpulseaudio
@@ -50,18 +51,18 @@ stdenv.mkDerivation rec {
   # You can get the upstream version and SHA-1 hash from the following URLs:
   # curl -s http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-amd64/Packages | grep -E 'Version|SHA1'
   # curl -s http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-i386/Packages | grep -E 'Version|SHA1'
-  version = "5.4.2.0";
+  version = "5.41.0.0";
 
   src =
     if stdenv.system == "x86_64-linux" then
       fetchurl {
         url = "${baseURL}/google-talkplugin_${version}-1_amd64.deb";
-        sha1 = "d75fad757750b4830c4e401ade92b4993e2a4ab2";
+        sha1 = "1c3cc0411444587b56178de4868eb5d0ff742ec0";
       }
     else if stdenv.system == "i686-linux" then
       fetchurl {
         url = "${baseURL}/google-talkplugin_${version}-1_i386.deb";
-        sha1 = "410872377b0bdac06b580c5e1755a3a3c712144b";
+        sha1 = "0d31d726c5e9a49917e2749e73386b1c0fdcb376";
       }
     else throw "Google Talk does not support your platform.";
 
diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/preload.c b/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/preload.c
index a643e39c31a3..1e2c31d9527a 100644
--- a/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/preload.c
+++ b/pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/preload.c
@@ -6,6 +6,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#include <string.h>
 #include <dlfcn.h>
 #include <sys/types.h>
 #include <sys/stat.h>