/[xlog]/xlog/src/remote.c
ViewVC logotype

Diff of /xlog/src/remote.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by pa4tu, Sat Oct 16 11:23:49 2004 UTC revision 1.14 by pa4tu, Wed Nov 24 19:02:37 2004 UTC
# Line 50  Line 50 
50    
51  #include <stdlib.h>  #include <stdlib.h>
52  #include <sys/types.h>  #include <sys/types.h>
 #include <sys/ipc.h>  
53  #include <errno.h>  #include <errno.h>
 #include <sys/msg.h>  
54  #include <gtk/gtk.h>  #include <gtk/gtk.h>
55  #include <string.h>  #include <string.h>
56    
57    #if defined(HAVE_SYS_IPC_H)
58    #include <sys/ipc.h>
59    #include <sys/msg.h>
60    #endif
61    
62  #include "remote.h"  #include "remote.h"
63  #include "types.h"  #include "types.h"
64  #include "log.h"  #include "log.h"
# Line 531  addtolog_or_qsoframe (gint type, gchar * Line 535  addtolog_or_qsoframe (gint type, gchar *
535  gint  gint
536  remote_entry (void)  remote_entry (void)
537  {  {
         glong msgtyp = 0;  
538          ssize_t status = -1;          ssize_t status = -1;
539    #if defined(HAVE_SYS_IPC_H)
540            glong msgtyp = 0;
541    
542          status = msgrcv (msgid, (void *) &msgbuf, 1024, msgtyp,          status = msgrcv (msgid, (void *) &msgbuf, 1024, msgtyp,
543                           MSG_NOERROR | IPC_NOWAIT);                           MSG_NOERROR | IPC_NOWAIT);
544    #endif
545          if (status != -1)          if (status != -1)
546                  addtolog_or_qsoframe (msgbuf.mtype, msgbuf.mtext);                  addtolog_or_qsoframe (msgbuf.mtype, msgbuf.mtext);
547          return 1;          return 1;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26