Changeset 09489b89 for owl.c


Ignore:
Timestamp:
Jul 2, 2003, 6:15:24 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
373b7e7
Parents:
7c9c847
Message:
First pass at making owl build without zephyr
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rcf83b7a r09489b89  
    1515#include <stdlib.h>
    1616#include <string.h>
    17 #include <zephyr/zephyr.h>
    1817#include <com_err.h>
    1918#include <signal.h>
     
    4140  struct tm *today;
    4241  char *dir;
     42#ifdef HAVE_LIBZEPHYR
    4343  ZNotice_t notice;
     44#endif
    4445
    4546  argcsave=argc;
     
    133134  if (debug) owl_global_set_debug_on(&g);
    134135  owl_global_set_startupargs(&g, argcsave, argvsave);
    135 
     136#ifdef HAVE_LIBZEPHYR
     137  owl_global_set_havezephyr(&g);
     138#endif
     139  owl_global_set_haveaim(&g);
     140 
    136141  /* create the owl directory, in case it does not exist */
    137142  dir=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_CONFIG_DIR);
     
    340345    zpendcount=0;
    341346    while(owl_zephyr_zpending() || owl_global_messagequeue_pending(&g)) {
     347#ifdef HAVE_LIBZEPHYR
    342348      struct sockaddr_in from;
     349#endif
    343350      owl_message *m;
    344351      owl_filter *f;
    345      
     352
    346353      /* grab the new message, stick it in 'm' */
    347354      if (owl_zephyr_zpending()) {
     355#ifdef HAVE_LIBZEPHYR
    348356        /* grab a zephyr notice, but if we've done 20 without stopping,
    349357           take a break to process keystrokes etc. */
     
    366374        m=owl_malloc(sizeof(owl_message));
    367375        owl_message_create_from_znotice(m, &notice);
     376#endif
    368377      } else if (owl_global_messagequeue_pending(&g)) {
    369378        m=owl_global_messageuque_popmsg(&g);
Note: See TracChangeset for help on using the changeset viewer.